1
0
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:
Ivan Savenko
2022-12-29 21:51:55 +02:00
committed by GitHub
119 changed files with 427 additions and 411 deletions

View File

@ -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());
}
}
}