SHA256
12
0
forked from pool/wxlua
wxlua/wxlstate.patch

15 lines
506 B
Diff
Raw Normal View History

Index: modules/wxlua/wxlstate.cpp
===================================================================
--- modules/wxlua/wxlstate.cpp (revision 251)
+++ modules/wxlua/wxlstate.cpp (working copy)
@@ -404,6 +404,9 @@
if ((m_lua_State == NULL) || m_wxlStateData->m_is_closing || m_lua_State_coroutine)
return true;
+ if (lua_status(m_lua_State) != 0)
+ return true;
+
m_wxlStateData->m_is_closing = true;
//wxCHECK_MSG(m_lua_State, false, wxT("Interpreter not created"));