From a6392d7c485fc9e2bc1ab5fb1879f60bc328eac5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Sat, 27 Jan 2018 12:52:35 +0100 Subject: [PATCH] Error ShowResearchPage.class.php Fixes #336 --- includes/pages/game/ShowResearchPage.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/pages/game/ShowResearchPage.class.php b/includes/pages/game/ShowResearchPage.class.php index 25a7e3dce..6718e4ef7 100644 --- a/includes/pages/game/ShowResearchPage.class.php +++ b/includes/pages/game/ShowResearchPage.class.php @@ -58,7 +58,7 @@ private function CancelBuildingFromQueue() $db = Database::get(); $elementId = $USER['b_tech_id']; - $costResources = BuildFunctions::getElementPrice($USER, $PLANET, $elementId, false, $PLANET[$elementId] + 1); + $costResources = BuildFunctions::getElementPrice($USER, $PLANET, $elementId, false, $USER[$resource[$elementId]] + 1); if($PLANET['id'] == $USER['b_tech_planet']) {