1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Fix another unprotected UI access

This commit is contained in:
Ivan Savenko
2023-06-26 22:14:21 +03:00
parent 0f8d53e978
commit 88566cb1ef

View File

@@ -322,6 +322,7 @@ void CServerHandler::applyPacksOnLobbyScreen()
boost::unique_lock<boost::recursive_mutex> lock(*mx);
while(!packsForLobbyScreen.empty())
{
boost::unique_lock<boost::recursive_mutex> guiLock(*CPlayerInterface::pim);
CPackForLobby * pack = packsForLobbyScreen.front();
packsForLobbyScreen.pop_front();
CBaseForLobbyApply * apply = applier->getApplier(typeList.getTypeID(pack)); //find the applier