fix: immediate finish of all building progress redirects correctly

This commit is contained in:
Martin Ambrus
2017-10-22 13:21:36 +02:00
parent e9e55af338
commit dd90648b09
4 changed files with 6 additions and 7 deletions
+1 -2
View File
@@ -369,8 +369,7 @@ if(isset($_GET['id']) or isset($_GET['gid']) or $route == 1 or isset($_GET['rout
}
if($_GET['buildingFinish'] == 1) {
if($session->gold >= 2) {
$building->finishAll();
header("Location: build.php?gid=".$_GET['id']."&ty=".$_GET['ty']);
$building->finishAll("build.php?gid=".$_GET['id']."&ty=".$_GET['ty']);
exit;
}
}