1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Fixes map editor crash on changing terrain of invalid tiles

This commit is contained in:
Opuszek
2025-10-27 21:42:19 +01:00
parent 6b4179af86
commit 6fc20c9bfd

View File

@@ -461,11 +461,9 @@ void SelectionTerrainLayer::select(const std::vector<int3> & tiles)
{
for (int3 tile : tiles)
{
if(!area.count(tile))
{
if(!area.count(tile) && map->isInTheMap(tile))
area.insert(tile);
}
}
redraw(tiles);
onSelection();
}