Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Commit

Permalink
Error ShowResearchPage.class.php
Browse files Browse the repository at this point in the history
Fixes #336
  • Loading branch information
jkroepke committed Jan 27, 2018
1 parent dd3ac38 commit a6392d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/pages/game/ShowResearchPage.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
{
Expand Down

2 comments on commit a6392d7

@yamilrh
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hello friend, once you fix this bug another one appears and it has to do with the resources, which does not make the discount ...

@mys
Copy link

@mys mys commented on a6392d7 Feb 15, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How can I reproduce Your bug? I made above fix for steemnova project https://github.com/steemnova/steemnova/pull/3/files
It looks fine

Please sign in to comment.