From e39e144e1de65be5e13cf329f196116492be118e Mon Sep 17 00:00:00 2001 From: whiteshark0 Date: Sat, 16 May 2009 13:17:06 +0000 Subject: some minor fixes in lua party functions git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@1734 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Lua/src/lua/ULuaParty.pas | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Lua') 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); -- cgit v1.2.3