]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/miscfunctions.qc
fix some sound errors and a warning
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / miscfunctions.qc
index 69704999725bf1cb45e5a198a6b32b63af719707..b669b041f51f765b10c8875b3e2d5c89d8fe6308 100644 (file)
@@ -1434,7 +1434,7 @@ void stopsoundto(float dest, entity e, float chan)
 
     entno = num_for_edict(e);
 
-    if (entno >= 8192 || chan > 7)
+    if (entno >= 8192 || chan < 0 || chan > 7)
     {
         float idx, sflags;
         idx = precache_sound_index("misc/null.wav");