fixed bug in calling update_event()

git-svn-id: svn://anubis/anaglym/trunk@119 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
Josh Holtrop 2009-10-21 00:11:05 +00:00
parent 812af7cc92
commit f3e313acf3

View File

@ -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);