From 04d10663dded6b42b57619f3d6d8594802a1ca00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Wed, 10 Jun 2020 20:34:29 +0200 Subject: [PATCH] MAPG-121 fix wrong condition --- src/Controller/GameController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(),