Parcourir la source

BattleAI: fix init env

Andrii Danylchenko il y a 1 an
Parent
commit
01b6828df6
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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();