changeset 9718 | 563a34cd8398 |
parent 9670 | 1954f692e8c6 |
child 9748 | b0286b0c91ce |
--- a/hedgewars/uScript.pas Mon Nov 25 10:12:18 2013 +0100 +++ b/hedgewars/uScript.pas Mon Nov 25 22:09:42 2013 +0100 @@ -1791,7 +1791,7 @@ if (lua_gettop(L) <> 1) then LuaError('Lua: Wrong number of parameters passed to GetCampaignVar!') else - SendIPCAndWaitReply('V?' + lua_tostring(L, 1)); + SendIPCAndWaitReply('V?' + lua_tostring(L, 1) + #0); lua_pushstring(L, str2pchar(CampaignVariable)); lc_getcampaignvar := 1; end;