Lua/LuaInstance: Fix crash on moving
Former-commit-id: da33b3c1be47ac876f5182ea30c89655ef1acac7 [formerly 14a7b0dc844cedaf02e16f5f61eaeab45e460e51] [formerly 5cebc7a6120670cbddad7983b688f0e02567c4d0 [formerly 2502f975d80666cd945224e477b26997d2e73e3b]] Former-commit-id: fbaee399b1bd606ff35e02f44dcd4aa4526464eb [formerly 85ff422793775d2bfd79a42b22ddb15fb2a19e72] Former-commit-id: 468f7f1b5f35c12c8f8d1e49053947b60fd33893
This commit is contained in:
parent
11f4464d90
commit
bb4b3080a3
|
|
@ -145,7 +145,8 @@ namespace Nz
|
|||
|
||||
LuaInstance::~LuaInstance()
|
||||
{
|
||||
lua_close(m_state);
|
||||
if (m_state)
|
||||
lua_close(m_state);
|
||||
}
|
||||
|
||||
void LuaInstance::ArgCheck(bool condition, unsigned int argNum, const char* error)
|
||||
|
|
|
|||
Loading…
Reference in New Issue