1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

One more thing.

This commit is contained in:
DjWarmonger
2012-04-23 05:01:52 +00:00
parent 9c9301a495
commit 6d03e0bf23

View File

@@ -656,7 +656,7 @@ void CBonusSystemNode::addNewBonus(Bonus *b)
void CBonusSystemNode::accumulateBonus(Bonus &b)
{
Bonus *bonus = bonuses.getFirst(Selector::typeSubtype(b.type, b.subtype)); //only local bonuses are interesting //TODO: what about value type?
Bonus *bonus = exportedBonuses.getFirst(Selector::typeSubtype(b.type, b.subtype)); //only local bonuses are interesting //TODO: what about value type?
if(bonus)
bonus += b.val;
else