From 741df993ff33832d773536ed571c1a67ed93b5cb Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Thu, 2 Oct 2014 15:58:13 -0400 Subject: Fix object reference pushing functions when called from coroutines --- src/script/cpp_api/s_base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/script/cpp_api/s_base.h') diff --git a/src/script/cpp_api/s_base.h b/src/script/cpp_api/s_base.h index 8520c262d..4ea3677a9 100644 --- a/src/script/cpp_api/s_base.h +++ b/src/script/cpp_api/s_base.h @@ -78,8 +78,8 @@ protected: GUIEngine* getGuiEngine() { return m_guiengine; } void setGuiEngine(GUIEngine* guiengine) { m_guiengine = guiengine; } - void objectrefGetOrCreate(ServerActiveObject *cobj); - void objectrefGet(u16 id); + void objectrefGetOrCreate(lua_State *L, ServerActiveObject *cobj); + void objectrefGet(lua_State *L, u16 id); JMutex m_luastackmutex; // Stack index of Lua error handler -- cgit v1.2.3