1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-27 00:41:08 +02:00

Fixed asserts (only for debug build)

This commit is contained in:
Tomasz Zieliński
2022-09-29 21:10:44 +02:00
parent dae726b82d
commit 127d7ec40b
3 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ void WaterProxy::process()
for(auto & t : zone.area().getTilesVector())
{
assert(map.isOnMap(t));
assert(map.map().getTile(t).terType == zone.getTerrainType());
assert(map.map().getTile(t).terType->id == zone.getTerrainType());
}
for(auto z : map.getZones())