Fix game crashes due to scene objects C# instances removal on EndPlay before all game logic ends

This commit is contained in:
Wojtek Figat
2024-05-31 10:29:23 +02:00
parent 806bff19f4
commit e0791eacad
2 changed files with 2 additions and 2 deletions

View File

@@ -313,7 +313,7 @@ void Script::EndPlay()
Flags &= ~ObjectFlags::IsDuringPlay;
// Cleanup managed object
DestroyManaged();
//DestroyManaged();
if (IsRegistered())
UnregisterObject();
}