1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

Merge pull request #4721 from SoundSSGood/crash-fix-BulkEraseArtifacts

BulkEraseArtifacts crash fix
This commit is contained in:
Ivan Savenko 2024-10-06 15:59:11 +03:00 committed by GitHub
commit 74903400bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1715,7 +1715,7 @@ void BulkEraseArtifacts::applyGs(CGameState *gs)
for(auto & slotInfoWorn : artSet->artifactsWorn)
{
auto art = slotInfoWorn.second.artifact;
if(art->isCombined() && art->isPart(slotInfo->getArt()))
if(art->isCombined() && art->isPart(slotInfo->artifact))
{
dis.al.slot = artSet->getArtPos(art);
break;