if LUA_NOREF, already unregistered
This commit is contained in:
@@ -116,7 +116,7 @@ int LuaReference::GetLuaType() const
|
|||||||
|
|
||||||
void LuaReference::Unregister()
|
void LuaReference::Unregister()
|
||||||
{
|
{
|
||||||
if( LUA == NULL )
|
if( LUA == NULL || m_iReference == LUA_NOREF )
|
||||||
return; // nothing to do
|
return; // nothing to do
|
||||||
|
|
||||||
Lua *L = LUA->Get();
|
Lua *L = LUA->Get();
|
||||||
|
|||||||
Reference in New Issue
Block a user