1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

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

This commit is contained in:
Andrii Danylchenko 2022-10-23 16:38:12 +03:00
parent afc0cc1c15
commit 7618bc7425

View File

@ -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);