Revert "Improve handling of errors in lua functions and speed up calls. (#1427)"
This reverts commit f10e3ae36a.
(it was a joke PR, do not fear)
This commit is contained in:
+2
-1
@@ -1297,7 +1297,8 @@ void Actor::RunCommands( const LuaReference& cmds, const LuaReference *pParamTab
|
||||
pParamTable->PushSelf( L );
|
||||
|
||||
// call function with 2 arguments and 0 results
|
||||
LuaHelpers::RunScriptOnStack(L, 2, 0);
|
||||
RString Error= "Error playing command:";
|
||||
LuaHelpers::RunScriptOnStack(L, Error, 2, 0, true);
|
||||
|
||||
LUA->Release(L);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user