mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-10 22:31:40 +02:00
not use mutex
This commit is contained in:
@@ -200,7 +200,6 @@ JsonNode OwnerUpdater::toJsonNode() const
|
||||
|
||||
std::shared_ptr<Bonus> OwnerUpdater::createUpdatedBonus(const std::shared_ptr<Bonus> & b, const CBonusSystemNode & context)
|
||||
{
|
||||
std::lock_guard lock(mutex);
|
||||
owner = context.getOwner();
|
||||
|
||||
if(owner == PlayerColor::UNFLAGGABLE)
|
||||
|
@@ -125,7 +125,6 @@ public:
|
||||
class DLL_LINKAGE OwnerUpdater : public IUpdater
|
||||
{
|
||||
protected:
|
||||
std::mutex mutex;
|
||||
PlayerColor owner;
|
||||
|
||||
public:
|
||||
|
Reference in New Issue
Block a user