Explorar o código

One more thing.

DjWarmonger %!s(int64=13) %!d(string=hai) anos
pai
achega
6d03e0bf23
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/HeroBonus.cpp

+ 1 - 1
lib/HeroBonus.cpp

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