1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Build fixes

This commit is contained in:
Tomasz Zieliński
2024-03-27 06:48:22 +01:00
parent 37f6993402
commit 19633a0f62
2 changed files with 3 additions and 2 deletions

View File

@ -614,7 +614,7 @@ void ObjectManager::placeObject(rmg::Object & object, bool guarded, bool updateD
}
}
for (auto id : sorted)
for (auto id : adjacentZones)
{
auto otherZone = map.getZones().at(id);
if ((otherZone->getType() == ETemplateZoneType::WATER) == (zone.getType() == ETemplateZoneType::WATER))