Browse Source

fix unused variable warning

Andrey Filipenkov 1 month ago
parent
commit
387e8521c5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/windows/CWindowWithArtifacts.cpp

+ 1 - 1
client/windows/CWindowWithArtifacts.cpp

@@ -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;