1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Merge pull request #1767 from Adriankhl/fix_battle_thread_shutdown

Properly shutdown battle thread
This commit is contained in:
Ivan Savenko
2023-03-29 14:40:15 +03:00
committed by GitHub
2 changed files with 16 additions and 6 deletions

View File

@@ -96,6 +96,7 @@ class CGameHandler : public IGameCallback, public CBattleInfoCallback, public En
{
CVCMIServer * lobby;
std::shared_ptr<CApplier<CBaseForGHApply>> applier;
std::unique_ptr<boost::thread> battleThread;
public:
using FireShieldInfo = std::vector<std::pair<const CStack *, int64_t>>;
//use enums as parameters, because doMove(sth, true, false, true) is not readable