Core: fix division by zero in case of spectator slot

This commit is contained in:
espeon65536 2022-03-19 10:02:18 -05:00 committed by Fabian Dill
parent affcaf1c02
commit 2d25369d06
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,7 @@ def balance_multiworld_progression(world: MultiWorld):
checked_locations = set()
unchecked_locations = set(world.get_locations())
reachable_locations_count = {player: 0 for player in world.player_ids}
reachable_locations_count = {player: 0 for player in world.player_ids if len(world.get_filled_locations(player)) != 0}
total_locations_count = Counter(location.player for location in world.get_locations() if not location.locked)
balanceable_players = {player for player in balanceable_players if total_locations_count[player]}
sphere_num = 1