mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
fix
This commit is contained in:
@@ -640,7 +640,7 @@ void BattleOnlyModeHeroSelector::setArtifactIcons()
|
||||
return artifactA->getNameTranslated() < artifactB->getNameTranslated();
|
||||
});
|
||||
|
||||
int selectedIndex = artifactId == ArtifactID::NONE ? 0 : (1 + std::distance(artifacts.begin(), std::find_if(artifacts.begin(), artifacts.end(), [this, i, artifactId](auto artID) {
|
||||
int selectedIndex = artifactId == ArtifactID::NONE ? 0 : (1 + std::distance(artifacts.begin(), std::find_if(artifacts.begin(), artifacts.end(), [artifactId](auto artID) {
|
||||
return artID == artifactId;
|
||||
})));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user