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:
@@ -98,7 +98,8 @@ void LifeMeterBattery::OnSongEnded()
|
||||
COURSE_SONG_REWARD_LIVES.PushSelf(L);
|
||||
PushSelf(L);
|
||||
LuaHelpers::Push(L, pn);
|
||||
LuaHelpers::RunScriptOnStack(L, 2, 1);
|
||||
RString error= "Error running CourseSongRewardLives callback: ";
|
||||
LuaHelpers::RunScriptOnStack(L, error, 2, 1, true);
|
||||
m_iLivesLeft += luaL_optnumber(L, -1, 0);
|
||||
lua_settop(L, 0);
|
||||
LUA->Release(L);
|
||||
|
||||
Reference in New Issue
Block a user