File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -541,14 +541,15 @@ void MovableObject::DestroyScriptState() {
541
541
m_ThreadedLuaState->RunScriptString (m_ScriptObjectName + " = nil;" );
542
542
m_ThreadedLuaState->UnregisterMO (this );
543
543
m_ThreadedLuaState = nullptr ;
544
+ m_ScriptObjectName.clear ();
544
545
}
545
546
}
546
547
}
547
548
548
549
// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
549
550
550
551
void MovableObject::Destroy (bool notInherited) {
551
- RTEAssert (m_ThreadedLuaState == nullptr , " Destroying an MO that still has a script state!" );
552
+ RTEAssert (m_ScriptObjectName. empty () , " Destroying an MO that still has a script state!" );
552
553
553
554
g_MovableMan.UnregisterObject (this );
554
555
if (!notInherited) {
You can’t perform that action at this time.
0 commit comments