1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-10 22:31:40 +02:00

BattleAI: fix init env

This commit is contained in:
Andrii Danylchenko
2024-08-22 21:20:22 +03:00
parent 9d18a2269c
commit 01b6828df6

View File

@@ -570,6 +570,7 @@ void AIGateway::initGameInterface(std::shared_ptr<Environment> env, std::shared_
LOG_TRACE(logAi);
myCb = CB;
cbc = CB;
this->env = env;
NET_EVENT_HANDLER;
playerID = *myCb->getPlayerID();