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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user