From 6a963d0ba3a0ad4675bafef2d659180d73f27bb0 Mon Sep 17 00:00:00 2001 From: iopietro Date: Wed, 25 Jul 2018 18:39:39 +0200 Subject: [PATCH] Fixed #491 +Fixed a bug that created MH's and Admin's villages with wrong resource fields, during the installation --- install/include/accounts.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install/include/accounts.php b/install/include/accounts.php index cba5e7fa..5580465a 100644 --- a/install/include/accounts.php +++ b/install/include/accounts.php @@ -63,7 +63,7 @@ if($status == 0) { $database->setFieldTaken($wid); $database->addVillage($wid, $uid, $_POST['aname'], 1); - $database->addResourceFields($wid, $database->getVillageType($wid)); + $database->addResourceFields($wid, $database->getVillageType($wid, false)); $addUnitsWrefs[] = $wid; $addTechWrefs[] = $wid; $addABTechWrefs[] = $wid; @@ -84,8 +84,8 @@ $status = $database->getVillageState($wid); if($status == 0) { $database->setFieldTaken($wid); - $database->addVillage($wid, $uid, 'Multihunter', '0'); - $database->addResourceFields($wid, $database->getVillageType($wid)); + $database->addVillage($wid, $uid, 'Multihunter', 0); + $database->addResourceFields($wid, $database->getVillageType($wid, false)); $database->addUnits($wid); $database->addTech($wid); $database->addABTech($wid);