From: Rudolf Polzer Date: Wed, 17 Oct 2012 11:36:05 +0000 (+0200) Subject: scripting fix X-Git-Tag: xonotic-v0.7.0~205 X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;h=b318a2c031d7b688847c2fc6a9005937c52e0c62;p=xonotic%2Fxonotic-data.pk3dir.git scripting fix --- diff --git a/qcsrc/server/bot/scripting.qc b/qcsrc/server/bot/scripting.qc index a1c00d040..7e29160cf 100644 --- a/qcsrc/server/bot/scripting.qc +++ b/qcsrc/server/bot/scripting.qc @@ -31,17 +31,17 @@ void bot_queuecommand(entity bot, string cmdstring) string parm; string cmdstr; - sp = strstrofs(cmdstr, " ", 0); + sp = strstrofs(cmdstring, " ", 0); if(sp < 0) { parm = ""; } else { - parm = substring(cmdstr, sp + 1, -1); - cmdstr = substring(cmdstr, 0, sp); + parm = substring(cmdstring, sp + 1, -1); + cmdstr = substring(cmdstring, 0, sp); if(cmdstr == "sound") - precache_sound(cmdstr); + precache_sound(parm); } }