]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix a QC crash instead of warning in case of missing .bgs (bgmscript) file
authorRudolf Polzer <divverent@xonotic.org>
Sun, 11 Mar 2012 13:47:51 +0000 (14:47 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Sun, 11 Mar 2012 13:47:51 +0000 (14:47 +0100)
qcsrc/client/bgmscript.qc

index 353c5419abd055c12e626ec34451d2099c7cac54..694bc0cc6f960169a3f61628b8541b482c5151ca 100644 (file)
@@ -132,7 +132,8 @@ void BGMScript_InitEntity(entity e)
                if(i >= bgmscriptbufsize)
                {
                        print(sprintf("ERROR: bgmscript does not define %s\n", e.bgmscript));
-                       e.bgmscript = "";
+                       strunzone(e.bgmscript);
+                       e.bgmscript = string_null;
                }
        }
 }