From 7618bc74255dea27af1371709ead8edad369e16f Mon Sep 17 00:00:00 2001 From: Andrii Danylchenko Date: Sun, 23 Oct 2022 16:38:12 +0300 Subject: [PATCH] Mantis-2934: fix conditions to upgrade town in h3m format parser --- lib/mapping/MapFormatH3M.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mapping/MapFormatH3M.cpp b/lib/mapping/MapFormatH3M.cpp index d45d15029..59e8d845d 100644 --- a/lib/mapping/MapFormatH3M.cpp +++ b/lib/mapping/MapFormatH3M.cpp @@ -400,7 +400,7 @@ void CMapLoaderH3M::readVictoryLossConditions() EventExpression::OperatorAll oper; EventCondition cond(EventCondition::HAVE_BUILDING); cond.position = readInt3(); - cond.objectType = BuildingID::VILLAGE_HALL + reader.readUInt8(); + cond.objectType = BuildingID::TOWN_HALL + reader.readUInt8(); oper.expressions.push_back(cond); cond.objectType = BuildingID::FORT + reader.readUInt8(); oper.expressions.push_back(cond);