Minor tweaks

This commit is contained in:
spx
2013-01-29 15:59:08 +09:00
parent c0d969f4b6
commit 89d477b4e1
3 changed files with 6 additions and 18 deletions

View File

@ -138,10 +138,7 @@ bool LuaScript::IsFunction(const char* funcName)
// Push the function onto the stack
lua_getfield(L, -1, funcName);
if (lua_isfunction(L, -1))
{
bExists = true;
}
bExists = lua_isfunction(L, -1);
// Pop both the table and the function off the stack.
lua_pop(L, 2);