if LUA_NOREF, already unregistered

This commit is contained in:
Glenn Maynard
2006-10-14 22:20:00 +00:00
parent d2d46fb406
commit 1324b0a97f
+1 -1
View File
@@ -116,7 +116,7 @@ int LuaReference::GetLuaType() const
void LuaReference::Unregister()
{
if( LUA == NULL )
if( LUA == NULL || m_iReference == LUA_NOREF )
return; // nothing to do
Lua *L = LUA->Get();