diff --git a/lib/bonuses/Updaters.cpp b/lib/bonuses/Updaters.cpp index 4d0abdf59..c4e660479 100644 --- a/lib/bonuses/Updaters.cpp +++ b/lib/bonuses/Updaters.cpp @@ -200,7 +200,6 @@ JsonNode OwnerUpdater::toJsonNode() const std::shared_ptr OwnerUpdater::createUpdatedBonus(const std::shared_ptr & b, const CBonusSystemNode & context) { - std::lock_guard lock(mutex); owner = context.getOwner(); if(owner == PlayerColor::UNFLAGGABLE) diff --git a/lib/bonuses/Updaters.h b/lib/bonuses/Updaters.h index 67f5aee5a..0d301e91f 100644 --- a/lib/bonuses/Updaters.h +++ b/lib/bonuses/Updaters.h @@ -125,7 +125,6 @@ public: class DLL_LINKAGE OwnerUpdater : public IUpdater { protected: - std::mutex mutex; PlayerColor owner; public: