mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-17 01:32:21 +02:00
Explicit use of limit selector in CBattleInfoCallback::getRandomBeneficialSpell
* reverted changes in IBonusBearer::hasBonusFrom just in case
This commit is contained in:
@ -362,7 +362,7 @@ bool IBonusBearer::hasBonusFrom(Bonus::BonusSource source, ui32 sourceID) const
|
||||
{
|
||||
std::stringstream cachingStr;
|
||||
cachingStr << "source_" << source << "id_" << sourceID;
|
||||
return hasBonus(Selector::source(source,sourceID), Selector::all, cachingStr.str());
|
||||
return hasBonus(Selector::source(source,sourceID), cachingStr.str());
|
||||
}
|
||||
|
||||
int IBonusBearer::MoraleVal() const
|
||||
|
Reference in New Issue
Block a user