Fix game crashes due to scene objects C# instances removal on EndPlay before all game logic ends
This commit is contained in:
@@ -313,7 +313,7 @@ void Script::EndPlay()
|
||||
Flags &= ~ObjectFlags::IsDuringPlay;
|
||||
|
||||
// Cleanup managed object
|
||||
DestroyManaged();
|
||||
//DestroyManaged();
|
||||
if (IsRegistered())
|
||||
UnregisterObject();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user