From: Rudolf Polzer Date: Sun, 11 Mar 2012 13:47:51 +0000 (+0100) Subject: fix a QC crash instead of warning in case of missing .bgs (bgmscript) file X-Git-Tag: xonotic-v0.7.0~359 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=aa597034df8d778288336ace1b55f9bdbcf41a96;p=xonotic%2Fxonotic-data.pk3dir.git fix a QC crash instead of warning in case of missing .bgs (bgmscript) file --- diff --git a/qcsrc/client/bgmscript.qc b/qcsrc/client/bgmscript.qc index 353c5419a..694bc0cc6 100644 --- a/qcsrc/client/bgmscript.qc +++ b/qcsrc/client/bgmscript.qc @@ -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; } } }