Skip to content

Commit

Permalink
Merge pull request #588 from ccjensen931/patch-1
Browse files Browse the repository at this point in the history
Update Market.php
  • Loading branch information
iopietro authored Mar 2, 2019
2 parents 08b111d + 7b5203b commit 542a393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GameEngine/Market.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ private function acceptOffer($get)
}

// We don't have enough resources
if($infoarray['wamt'] > ([$village->awood, $village->aclay, $village->airon, $village->acrop])[$infoarray['wtype']])
if($infoarray['wamt'] > ([$village->awood, $village->aclay, $village->airon, $village->acrop])[$infoarray['wtype'] - 1])
{
header("Location: build.php?id=".$get['id']."&t=1&e1");
exit;
Expand Down

0 comments on commit 542a393

Please sign in to comment.