From 9152e1927c99d3271452d7cdd375b8f6084fcf02 Mon Sep 17 00:00:00 2001 From: Michal Dziekonski Date: Mon, 7 Dec 2020 02:58:09 +0100 Subject: [PATCH] GH-139 Simplify fleet remover entries creation --- fleet3.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fleet3.php b/fleet3.php index 87b73bbf2..0970d952e 100644 --- a/fleet3.php +++ b/fleet3.php @@ -458,7 +458,8 @@ function messageRed($Text, $Title) $Fleet['FuelStorage'] += $ThisStorage; } - $FleetRemover[] = "`{$_Vars_GameElements[$ShipID]}` = `{$_Vars_GameElements[$ShipID]}` - {$ShipCount}"; + $planetElementKey = _getElementPlanetKey($ShipID); + $FleetRemover[] = "`{$planetElementKey}` = `{$planetElementKey}` - {$ShipCount}"; } } else { messageRed($_Lang['fl2_FleetArrayPostEmpty'], $ErrorTitle);