Преглед на файлове

Mantis-2934: fix conditions to upgrade town in h3m format parser

Andrii Danylchenko преди 3 години
родител
ревизия
7618bc7425
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      lib/mapping/MapFormatH3M.cpp

+ 1 - 1
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);