From 914cea5877d55f90d8622d5f8980642fde748295 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Zieli=C5=84ski?= Date: Fri, 26 Apr 2024 19:33:26 +0200 Subject: [PATCH] Tweaks --- lib/bonuses/CBonusSystemNode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bonuses/CBonusSystemNode.cpp b/lib/bonuses/CBonusSystemNode.cpp index 39e09963a..2f6d4db0b 100644 --- a/lib/bonuses/CBonusSystemNode.cpp +++ b/lib/bonuses/CBonusSystemNode.cpp @@ -417,9 +417,9 @@ void CBonusSystemNode::unpropagateBonus(const std::shared_ptr & b) if (bonuses -= b) logBonus->trace("#$# %s #is no longer propagated to# %s", b->Description(), nodeName()); 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) {