PATCH bug that causes crash at end of game

This commit is contained in:
2025-04-22 18:40:06 +02:00
parent 6ea83bda0d
commit daa284ed95
2 changed files with 6 additions and 2 deletions

View File

@@ -23,6 +23,10 @@ class Match:
# empty tick
if self.current_tick.empty:
return
# check if current tick has NaN values
if self.current_tick.isnull().values.any():
return
for player in self.get_players():
player.x = self.current_tick[self.current_tick["player_steamid"] == player.steam_id]["X"].values[0]