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

Bring hero strength for campaigns in line with h3

This commit is contained in:
Ivan Savenko
2025-06-13 17:18:05 +03:00
parent d2580d502e
commit ba0188ca7f
5 changed files with 30 additions and 12 deletions

View File

@@ -553,7 +553,7 @@ void CGameStateCampaign::initHeroes()
int maxB = -1;
for (int b=0; b<heroes.size(); ++b)
{
if (maxB == -1 || heroes[b]->getValueForCampaign() > heroes[maxB]->getValueForCampaign())
if(maxB == -1 || CGHeroInstance::compareCampaignValue(heroes[b], heroes[maxB]))
{
maxB = b;
}