Skip to content

Commit

Permalink
GH-91 Initialise maxResourcesPillage with zero-valued entries
Browse files Browse the repository at this point in the history
  • Loading branch information
mdziekon committed Mar 28, 2020
1 parent db91623 commit b668b7f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion includes/functions/MissionCaseGroupAttack.php
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,10 @@ function MissionCaseGroupAttack($FleetRow, &$_FleetCache)
$TotalCryStolen = 0;
$TotalDeuStolen = 0;

$maxResourcesPillage = null;
$maxResourcesPillage = Flights\Utils\Missions\calculateMaxPlanetPillage([
'planet' => $TargetPlanet,
'maxPillagePercentage' => 0,
]);

if(!empty($AtkShips))
{
Expand Down

0 comments on commit b668b7f

Please sign in to comment.