1
0
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:
AlexVinS
2016-10-01 07:28:03 +03:00
parent 902117d812
commit 730e3b6d0f
2 changed files with 5 additions and 2 deletions

View File

@ -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