Null-checks on KarmaGauge

This commit is contained in:
Alexander Nell
2020-05-11 17:05:56 +02:00
parent 5956bb292d
commit bd90714ed3
2 changed files with 8 additions and 4 deletions

View File

@ -314,8 +314,10 @@ class ManiaExchangeList implements CallbackListener, ManialinkPageAnswerListener
20,
10
);
$mapFrame->addChild($karmaGauge);
$karmaGauge->setX($posX + 87);
if ($karmaGauge) {
$mapFrame->addChild($karmaGauge);
$karmaGauge->setX($posX + 87);
}
$posY -= 4;