aboutsummaryrefslogtreecommitdiffstats
path: root/Lua/src
diff options
context:
space:
mode:
authorwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-05-16 13:17:06 +0000
committerwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-05-16 13:17:06 +0000
commite39e144e1de65be5e13cf329f196116492be118e (patch)
treef13fdbeba8c3f1e39861c40aaabd5d3de432b5f0 /Lua/src
parent888afc0c0fe525d0d09bf1933ee6a144f4f660e8 (diff)
downloadusdx-e39e144e1de65be5e13cf329f196116492be118e.tar.gz
usdx-e39e144e1de65be5e13cf329f196116492be118e.tar.xz
usdx-e39e144e1de65be5e13cf329f196116492be118e.zip
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
Diffstat (limited to 'Lua/src')
-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);