mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-01 23:12:49 +02:00
Do not use locks on single-threaded server.
Especially since this lock is global and is shared between client and server for no reason
This commit is contained in:
@@ -75,8 +75,6 @@ public:
|
||||
void applyOnGS(CGameState *gs, CPack * pack) const override
|
||||
{
|
||||
T *ptr = static_cast<T*>(pack);
|
||||
|
||||
boost::unique_lock<boost::shared_mutex> lock(CGameState::mutex);
|
||||
ptr->applyGs(gs);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user