Core: fix division by zero in case of spectator slot
This commit is contained in:
		
							parent
							
								
									affcaf1c02
								
							
						
					
					
						commit
						2d25369d06
					
				
							
								
								
									
										2
									
								
								Fill.py
								
								
								
								
							
							
						
						
									
										2
									
								
								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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue