Skip to content

Commit b19e1dd

Browse files
committed
fix ticket-0667
1 parent d9e2290 commit b19e1dd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Component/Spacecraft/Nbs/NbsUtility.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ public function setNbsTemplateVars(
6464
$game->getUser()->getId()
6565
);
6666

67-
$trumfieldNbs = $spacecraft->getLocation()->getTrumfields()->toArray();
67+
$trumfieldNbs = $field !== null
68+
? $field->getTrumfields()->toArray()
69+
: $spacecraft->getLocation()->getTrumfields()->toArray();
6870

6971
$game->setTemplateVar(
7072
'HAS_NBS',

0 commit comments

Comments
 (0)