small fix
This commit is contained in:
		
				
					committed by
					
						 Steffen Schröder
						Steffen Schröder
					
				
			
			
				
	
			
			
			
						parent
						
							cd6790ef73
						
					
				
				
					commit
					e4095b82e6
				
			| @@ -301,8 +301,12 @@ class QueuePlugin implements CallbackListener, CommandListener, ManialinkPageAns | |||||||
| 			$teams = array(); | 			$teams = array(); | ||||||
| 			/** @var  Player $player */ | 			/** @var  Player $player */ | ||||||
| 			foreach($this->maniaControl->playerManager->players as $player) { | 			foreach($this->maniaControl->playerManager->players as $player) { | ||||||
|  | 				if(!isset($teams[$player->teamId])){ | ||||||
|  | 					$teams[$player->teamId] = 1; | ||||||
|  | 				}else{ | ||||||
| 					$teams[$player->teamId]++; | 					$teams[$player->teamId]++; | ||||||
| 				} | 				} | ||||||
|  | 			} | ||||||
|  |  | ||||||
| 			$smallestTeam = null; | 			$smallestTeam = null; | ||||||
| 			$smallestSize = 999; | 			$smallestSize = 999; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user