hedgewars/uScript.pas
changeset 10560 9f09196d92a6
parent 10553 67c6de2a0213
child 10581 f0b4c14a3c62
--- a/hedgewars/uScript.pas	Fri Nov 28 14:58:33 2014 -0500
+++ b/hedgewars/uScript.pas	Sat Nov 29 01:19:29 2014 +0100
@@ -2534,7 +2534,7 @@
 function ScriptCall(fname : shortstring; par1, par2, par3, par4 : LongInt) : LongInt;
 begin
 if (not ScriptLoaded) or (not ScriptExists(fname)) then
-    exit;
+    exit(0);
 SetGlobals;
 lua_getglobal(luaState, Str2PChar(fname));
 lua_pushinteger(luaState, par1);