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

Remove pointers from artifacts

This commit is contained in:
Ivan Savenko
2025-03-30 23:09:43 +03:00
parent 4ed13409c2
commit d34b47bb20
29 changed files with 211 additions and 146 deletions

View File

@@ -642,12 +642,12 @@ ModCompatibilityInfo MapController::modAssessmentMap(const CMap & map)
for(const auto & [_, slotInfo] : hero->artifactsWorn)
{
extractEntityMod(slotInfo.artifact->getTypeId().toEntity(LIBRARY));
extractEntityMod(slotInfo.getArt()->getTypeId().toEntity(LIBRARY));
}
for(const auto & art : hero->artifactsInBackpack)
{
extractEntityMod(art.artifact->getTypeId().toEntity(LIBRARY));
extractEntityMod(art.getArt()->getTypeId().toEntity(LIBRARY));
}
}
}