We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08756c3 commit e3af1a5Copy full SHA for e3af1a5
Entities/MovableObject.cpp
@@ -548,6 +548,8 @@ void MovableObject::DestroyScriptState() {
548
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
549
550
void MovableObject::Destroy(bool notInherited) {
551
+ RTEAssert(m_ThreadedLuaState == nullptr, "Destroying an MO that still has a script state!");
552
+
553
g_MovableMan.UnregisterObject(this);
554
if (!notInherited) {
555
SceneObject::Destroy();
0 commit comments