mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Minor tweaks
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user