small stability improvement
This commit is contained in:
parent
a4600e94de
commit
8b7e73b52a
@ -38,6 +38,7 @@ class OnCaptureStructure extends BaseStructure {
|
|||||||
$this->time = $jsonObj->time;
|
$this->time = $jsonObj->time;
|
||||||
$this->playerArray = $jsonObj->players;
|
$this->playerArray = $jsonObj->players;
|
||||||
|
|
||||||
|
if (property_exists($jsonObj, 'landmark')) {
|
||||||
$this->landMark = new Landmark();
|
$this->landMark = new Landmark();
|
||||||
$this->landMark->setTag($jsonObj->landmark->tag);
|
$this->landMark->setTag($jsonObj->landmark->tag);
|
||||||
$this->landMark->setOrder($jsonObj->landmark->order);
|
$this->landMark->setOrder($jsonObj->landmark->order);
|
||||||
@ -50,6 +51,7 @@ class OnCaptureStructure extends BaseStructure {
|
|||||||
|
|
||||||
$this->landMark->setPosition($position);
|
$this->landMark->setPosition($position);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the logins as Array
|
* Get the logins as Array
|
||||||
|
Loading…
Reference in New Issue
Block a user