diff --git a/Engine.cc b/Engine.cc index aeb0d86..3c65773 100644 --- a/Engine.cc +++ b/Engine.cc @@ -442,7 +442,7 @@ void Engine::update_event() if (m_event_update_present) { lua_getfield(m_luaState, LUA_GLOBALSINDEX, - EVENT_HANDLER_AG_NAME(update_event)); + EVENT_HANDLER_AG_NAME(update)); /* call the update function - pops the function ref from the stack */ int s = lua_pcall(m_luaState, 0, LUA_MULTRET, 0); reportErrors(s);