MAPG-121 fix wrong condition
This commit is contained in:
parent
f11cba4f10
commit
04d10663dd
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user