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

Fix crash on h3c->vcmp conversion via editor

This commit is contained in:
Ivan Savenko
2025-06-18 12:07:30 +03:00
parent c0c639a6d8
commit 354253c27a
2 changed files with 6 additions and 1 deletions

View File

@@ -139,6 +139,9 @@ void MapController::repairMap(CMap * map)
for(auto obj : allImpactedObjects)
{
if(obj == nullptr)
continue;
//fix flags
if(obj->asOwnable() != nullptr && obj->getOwner() == PlayerColor::UNFLAGGABLE)
{