1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

fix unused variable warning

This commit is contained in:
Andrey Filipenkov
2025-09-15 13:53:06 +03:00
parent 28f4a3310c
commit 387e8521c5

View File

@@ -52,7 +52,7 @@ const CGHeroInstance * CWindowWithArtifacts::getHeroPickedArtifact() const
const CGHeroInstance * hero = nullptr;
for(const auto & artSet : artSets)
if(const auto pickedArt = artSet->getHero()->getArt(ArtifactPosition::TRANSITION_POS))
if(artSet->getHero()->getArt(ArtifactPosition::TRANSITION_POS) != nullptr)
{
hero = artSet->getHero();
break;