diff --git a/includes/pages/game/ShowBuildingsPage.class.php b/includes/pages/game/ShowBuildingsPage.class.php index f37432619..4c1c0ede2 100644 --- a/includes/pages/game/ShowBuildingsPage.class.php +++ b/includes/pages/game/ShowBuildingsPage.class.php @@ -106,7 +106,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; }