1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00
This commit is contained in:
Laserlicht
2025-11-08 19:11:56 +01:00
parent cfc0438468
commit 5511c751d0

View File

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