1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Merge pull request #4492 from vcmi/fix-battle-ai

BattleAI: fix init env
This commit is contained in:
Andrii Danylchenko 2024-08-22 21:59:15 +03:00 committed by GitHub
commit 5de5ac5eb5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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();