Sfoglia il codice sorgente

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

BattleAI: fix init env
Andrii Danylchenko 1 anno fa
parent
commit
5de5ac5eb5
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      AI/Nullkiller/AIGateway.cpp

+ 1 - 0
AI/Nullkiller/AIGateway.cpp

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