From 49ebbee7475422ff3af1c6c15f977c28ccda9554 Mon Sep 17 00:00:00 2001 From: Pietro Date: Tue, 3 Apr 2018 13:56:13 +0200 Subject: [PATCH] Fixed a demolition bug Resource fields can't be demolished anymore --- Templates/Build/15_1.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Templates/Build/15_1.tpl b/Templates/Build/15_1.tpl index 429b2ab9..9c72bb39 100644 --- a/Templates/Build/15_1.tpl +++ b/Templates/Build/15_1.tpl @@ -19,7 +19,7 @@ if ($session->alliance) { if(!empty($_REQUEST["demolish"]) && $_REQUEST["c"] == $session->mchecker) { if($session->access != BANNED){ - if($_REQUEST["type"] != null) { + if($_REQUEST["type"] != null && ($_REQUEST["type"] >= 19 && $_REQUEST["type"] <= 40 || $_REQUEST["type"] == 99)) { $type = $_REQUEST['type']; $demolish_permitted = $database->addDemolition($village->wid,$type); if ($demolish_permitted === true) {