From 2d25369d065234930f3d25413bdef8ffc16f4696 Mon Sep 17 00:00:00 2001 From: espeon65536 Date: Sat, 19 Mar 2022 10:02:18 -0500 Subject: [PATCH] Core: fix division by zero in case of spectator slot --- Fill.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Fill.py b/Fill.py index 8d45ab5dae..bd91a8c63a 100644 --- a/Fill.py +++ b/Fill.py @@ -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