From: terencehill Date: Sat, 27 Dec 2014 15:15:48 +0000 (+0100) Subject: Add a check X-Git-Tag: xonotic-v0.8.1~157^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2baaf818a682616f9e8d4d5547ce40391ff5879c;p=xonotic%2Fxonotic-data.pk3dir.git Add a check --- diff --git a/qcsrc/menu/xonotic/soundlist.c b/qcsrc/menu/xonotic/soundlist.c index f1b4aa300..e45e486dc 100644 --- a/qcsrc/menu/xonotic/soundlist.c +++ b/qcsrc/menu/xonotic/soundlist.c @@ -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)