Ver código fonte

Set destination tile in GetObj - needed for priority evaluation

Dydzio 7 anos atrás
pai
commit
4b776db1a2
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      AI/VCAI/Goals.h

+ 1 - 0
AI/VCAI/Goals.h

@@ -470,6 +470,7 @@ public:
 		: CGoal(Goals::GET_OBJ)
 	{
 		objid = Objid;
+		tile = cb->getObjInstance(ObjectInstanceID(objid))->visitablePos();
 		priority = 3;
 	}
 	TGoalVec getAllPossibleSubgoals() override;