diff --git a/multiplayer_server/rooms/Game.php b/multiplayer_server/rooms/Game.php index f86642084..ecc9854b5 100644 --- a/multiplayer_server/rooms/Game.php +++ b/multiplayer_server/rooms/Game.php @@ -385,7 +385,7 @@ private function beginRace() } // remove other invalid hats from valid hats array - if (!emtpy($bad_hats)) { + if ($bad_hats) { $this->valid_hats = array_values(array_diff($this->valid_hats, explode(',', $bad_hats))); }