Fix SpectatorClient holding references to Player

This commit is contained in:
Dan Balasescu 2024-04-03 17:32:02 +09:00
parent fd9b890a94
commit b5adcf2e0e
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -248,6 +248,9 @@ public void EndPlaying(GameplayState state)
isPlaying = false;
currentBeatmap = null;
currentScore = null;
currentScoreProcessor = null;
currentScoreToken = null;
if (state.HasPassed)
currentState.State = SpectatedUserState.Passed;