1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-25 21:38:59 +02:00

Fix issue found by Sonarcloud

This commit is contained in:
Tomasz Zieliński 2024-03-09 08:17:46 +01:00
parent 87bf4b752a
commit 69cfc83be3

View File

@ -142,11 +142,8 @@ void CRewardableObject::onHeroVisit(const CGHeroInstance *h) const
break;
}
case Rewardable::SELECT_ALL: // grant all possible
{
auto rewards = getAvailableRewards(h, Rewardable::EEventType::EVENT_FIRST_VISIT);
grantAllRewardsWthMessage(h, rewards, true);
break;
}
}
break;
}