소스 검색

BattleAI: fix init env

Andrii Danylchenko 1 년 전
부모
커밋
01b6828df6
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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();