aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Lua/src/lua/ULuaParty.pas6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lua/src/lua/ULuaParty.pas b/Lua/src/lua/ULuaParty.pas
index 25cfce94..76bc02ef 100644
--- a/Lua/src/lua/ULuaParty.pas
+++ b/Lua/src/lua/ULuaParty.pas
@@ -103,6 +103,8 @@ function ULuaParty_Register(L: Plua_State): Integer; cdecl;
Key: String;
P: TLuaPlugin;
begin
+ Result := 0;
+
// check for table on stack
luaL_checkType(L, 1, LUA_TTABLE);
@@ -174,6 +176,8 @@ end;
it will raise an error }
function ULuaParty_SetWinner(L: Plua_State): Integer; cdecl;
begin
+ Result := 0;
+
luaL_checktype(L, 1, LUA_TTABLE);
if (not Party.SetWinner(Lua_ToBinInt(L, 1))) then
@@ -326,6 +330,8 @@ function ULuaParty_SetTeams(L: Plua_State): Integer; cdecl;
end;
end;
begin
+ Result := 0;
+
// check for table on stack
luaL_checkType(L, 1, LUA_TTABLE);