diff --git a/src/Controller/GameController.php b/src/Controller/GameController.php index 8a47d54..84538ce 100644 --- a/src/Controller/GameController.php +++ b/src/Controller/GameController.php @@ -43,7 +43,7 @@ class GameController $session = $this->request->session(); - if (($state = $session->get('state')) && $state['mapId'] !== $mapId) { + if (!($state = $session->get('state')) || $state['mapId'] !== $mapId) { $session->set('state', [ 'mapId' => $mapId, 'area' => $bounds->calculateApproximateArea(),