We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01252dd commit 6ff3155Copy full SHA for 6ff3155
src/Module/Database/View/ShowPirateRound/ShowPirateRound.php
@@ -83,8 +83,8 @@ public function handle(GameControllerInterface $game): void
83
}
84
85
86
- $maxPrestige = $lastRound->getMaxPrestige() ?? 0;
87
- $actualPrestige = $lastRound->getActualPrestige() ?? 0;
+ $maxPrestige = $lastRound->getMaxPrestige();
+ $actualPrestige = $lastRound->getActualPrestige();
88
$remainingPrestige = max(0, $maxPrestige - $actualPrestige);
89
90
$game->setTemplateVar('REMAINING_PRESTIGE', $remainingPrestige);
@@ -155,4 +155,4 @@ private function getFactionPrestigeData(array $userPirateRounds): array
155
156
return $result;
157
158
-}
+}
0 commit comments