1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Properly shutdown battle thread in CGameHandler destructor

This commit is contained in:
Adriankhl
2023-03-25 20:29:33 +01:00
parent 5288e3761e
commit 21a4113fc1
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