Răsfoiți Sursa

BattleAI: fix init env

Andrii Danylchenko 1 an în urmă
părinte
comite
01b6828df6
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  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();