MAPG-121 fix wrong condition

This commit is contained in:
Bence Pőcze 2020-06-10 20:34:29 +02:00
parent f11cba4f10
commit 04d10663dd

View File

@ -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(),