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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user