From db4ea4658c58772ee447ff0eff8bb39b692081ec Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Tue, 15 Apr 2014 13:30:46 -0400 Subject: Only push the Lua error handler once --- src/script/cpp_api/s_base.h | 3 +++ 1 file changed, 3 insertions(+) (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 75552cc34..8520c262d 100644 --- a/src/script/cpp_api/s_base.h +++ b/src/script/cpp_api/s_base.h @@ -82,9 +82,12 @@ protected: void objectrefGet(u16 id); JMutex m_luastackmutex; + // Stack index of Lua error handler + int m_errorhandler; #ifdef SCRIPTAPI_LOCK_DEBUG bool m_locked; #endif + private: lua_State* m_luastack; -- cgit v1.2.3