Skip to content

Commit

Permalink
Bug Fixes
Browse files Browse the repository at this point in the history
+Fixed a bug that led to passing wrong tribe as a parameter, in the
removeBuilding method
  • Loading branch information
iopietro authored Feb 21, 2019
1 parent d9e2092 commit 80e5b73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GameEngine/Building.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ public function loadBuilding() {
}

private function removeBuilding($d) {
global $database, $village;
global $database, $village, $session;
foreach($this->buildArray as $jobs) {
if($jobs['id'] == $d) {
$uprequire = $this->resourceRequired($jobs['field'], $jobs['type']);
Expand Down

0 comments on commit 80e5b73

Please sign in to comment.