blob: 0e631d5d3779e0ce8e4487227042800702e8f114 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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) != LUA_OK)
+ return true;
+
m_wxlStateData->m_is_closing = true;
//wxCHECK_MSG(m_lua_State, false, wxT("Interpreter not created"));
|