Tomasz Zieliński 1 年之前
父节点
当前提交
914cea5877
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/bonuses/CBonusSystemNode.cpp

+ 2 - 2
lib/bonuses/CBonusSystemNode.cpp

@@ -417,9 +417,9 @@ void CBonusSystemNode::unpropagateBonus(const std::shared_ptr<Bonus> & b)
 		if (bonuses -= b)
 		if (bonuses -= b)
 			logBonus->trace("#$# %s #is no longer propagated to# %s",  b->Description(), nodeName());
 			logBonus->trace("#$# %s #is no longer propagated to# %s",  b->Description(), nodeName());
 		else
 		else
-			logBonus->error("Error on unpropagateBonus. #$# %s is not propagated to %s", b->Description(), nodeName());
+			logBonus->warn("Attempt to remove #$# %s, which is not propagated to %s", b->Description(), nodeName());
 
 
-		bonuses.remove_if([this, b](const auto & bonus)
+		bonuses.remove_if([b](const auto & bonus)
 		{
 		{
 			if (bonus->propagationUpdater && bonus->propagationUpdater == b->propagationUpdater)
 			if (bonus->propagationUpdater && bonus->propagationUpdater == b->propagationUpdater)
 			{
 			{