]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add a check
authorterencehill <piuntn@gmail.com>
Sat, 27 Dec 2014 15:15:48 +0000 (16:15 +0100)
committerterencehill <piuntn@gmail.com>
Sat, 27 Dec 2014 15:15:48 +0000 (16:15 +0100)
qcsrc/menu/xonotic/soundlist.c

index f1b4aa300800134875f8e2e1f11eb3531395b18d..e45e486dcf039a29057b2b54f27603d1819ea69a 100644 (file)
@@ -83,7 +83,8 @@ void XonoticSoundList_getSounds(entity me)
 
 void XonoticSoundList_destroy(entity me)
 {
-       search_end(me.listSound);
+       if(me.listSound >= 0)
+               search_end(me.listSound);
 }
 
 void XonoticSoundList_resizeNotify(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)