Fix scripting object issue

This commit is contained in:
Wojtek Figat
2021-02-08 19:42:04 +01:00
parent 57f9e42486
commit c9860f21ec
2 changed files with 22 additions and 8 deletions

View File

@@ -276,10 +276,6 @@ void PersistentScriptingObject::OnManagedInstanceDeleted()
_gcHandle = 0;
}
// Unregister object
if (IsRegistered())
UnregisterObject();
// But do not delete itself
}