Bizorke / Gear3Engine-Issues

For bugs and features.
1 stars 0 forks source link

Don't remove any game objects until after the fixed update. #1195

Closed JSideris closed 3 years ago

JSideris commented 3 years ago

When an object is deleted by the factory, add it to a list of pending deletes. Then clear the list after the main update. This will prevent references to deleted objects. Will also prevent updates in the middle of a physics collision (there is already an open issue for this).