瀏覽代碼

One more thing.

DjWarmonger 13 年之前
父節點
當前提交
6d03e0bf23
共有 1 個文件被更改,包括 1 次插入1 次删除
  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