mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-17 00:07:41 +02:00
Merge pull request #1221 from IvanSavenko/warnings_fix
Fix remaining compiler warnings
This commit is contained in:
@ -344,12 +344,12 @@ void CMapGenerator::findZonesForQuestArts()
|
||||
if (zoneA->getId() > zoneB->getId())
|
||||
{
|
||||
if(auto * m = zoneB->getModificator<TreasurePlacer>())
|
||||
zoneB->getModificator<TreasurePlacer>()->setQuestArtZone(zoneA.get());
|
||||
m->setQuestArtZone(zoneA.get());
|
||||
}
|
||||
else if (zoneA->getId() < zoneB->getId())
|
||||
{
|
||||
if(auto * m = zoneA->getModificator<TreasurePlacer>())
|
||||
zoneA->getModificator<TreasurePlacer>()->setQuestArtZone(zoneB.get());
|
||||
m->setQuestArtZone(zoneB.get());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user