1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Fix regressions in RMG & map editor

This commit is contained in:
Ivan Savenko
2023-01-10 01:05:28 +02:00
parent 668aee71ff
commit c455986a55
4 changed files with 12 additions and 10 deletions

View File

@@ -346,7 +346,7 @@ CDrawTerrainOperation::ValidationResult CDrawTerrainOperation::validateTerrainVi
int cy = pos.y + (i / 3) - 1;
int3 currentPos(cx, cy, pos.z);
bool isAlien = false;
TerrainType * terType = nullptr;
const TerrainType * terType = nullptr;
if(!map->isInTheMap(currentPos))
{
// position is not in the map, so take the ter type from the neighbor tile