Skip to content

Commit

Permalink
empty seems problematic
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-grahn committed Sep 22, 2024
1 parent 61c99ce commit 577f667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion multiplayer_server/rooms/Game.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
}

Expand Down

0 comments on commit 577f667

Please sign in to comment.