diff --git a/includes/pages/game/ShowBuildingsPage.class.php b/includes/pages/game/ShowBuildingsPage.class.php index d4650fa35..776c8d8e5 100644 --- a/includes/pages/game/ShowBuildingsPage.class.php +++ b/includes/pages/game/ShowBuildingsPage.class.php @@ -105,7 +105,7 @@ private function RemoveBuildingFromQueue($QueueID) if($Element == $ListIDArray[0] || empty($ListIDArray[0])) continue; - $BuildEndTime += BuildFunctions::getBuildingTime($USER, $PLANET, $ListIDArray[0], NULL, $ListIDArray[4] == 'destroy', $ListIDArray[2]); + $BuildEndTime += BuildFunctions::getBuildingTime($USER, $PLANET, $ListIDArray[0], NULL, $ListIDArray[4] == 'destroy', $ListIDArray[1]); $ListIDArray[3] = $BuildEndTime; $NewQueueArray[] = $ListIDArray; }