1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Merge pull request #2143 from SoundSSGood/commander-art-transfer-fix

Artifact transfer to the commander fix
This commit is contained in:
Ivan Savenko 2023-05-12 17:37:37 +03:00 committed by GitHub
commit b0c3e767d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -270,7 +270,7 @@ void CWindowWithArtifacts::artifactMoved(const ArtifactLocation & srcLoc, const
}
// Make sure the status bar is updated so it does not display old text
if(destLoc.isHolder(hero))
if(destLoc.getHolderArtSet() == hero)
{
if(auto artPlace = artSetPtr->getArtPlace(destLoc.slot))
artPlace->hover(true);