1
0
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:
Ivan Savenko
2024-05-13 15:42:33 +00:00
parent 95d761bbb8
commit 93da58beed
2 changed files with 4 additions and 3 deletions

View File

@@ -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);
}
};