Skip to content

Commit

Permalink
Fix crashes from boss scene mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Extremelyd1 committed Aug 3, 2024
1 parent 78e0a6e commit 20be638
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions HKMP/Game/Client/Entity/EntityManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,9 @@ private void OnSceneChanged(Scene oldScene, Scene newScene) {
entity.Destroy();
}

// Clear the list of entities and the queue of received updates that have not been applied yet
_entities.Clear();
_receivedUpdates.Clear();

MusicComponent.ClearInstance();

Expand Down

0 comments on commit 20be638

Please sign in to comment.