Browse Source

BattleAI: fix init env

Andrii Danylchenko 1 năm trước cách đây
mục cha
commit
01b6828df6
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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();