소스 검색

revert fix for nullptr w NK2AI_TRACE_LEVEL due to thread local issues

Mircea TheHonestCTO 3 달 전
부모
커밋
98e0a3de6e
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      AI/Nullkiller2/Behaviors/CaptureObjectsBehavior.cpp

+ 2 - 3
AI/Nullkiller2/Behaviors/CaptureObjectsBehavior.cpp

@@ -98,9 +98,8 @@ Goals::TGoalVec CaptureObjectsBehavior::getVisitGoals(
 			auto subGoal = firstBlockedAction->decompose(nullkiller, path.targetHero);
 
 #if NK2AI_TRACE_LEVEL >= 2
-			// Deactivating because sometimes it ends up with cb null in QuestInfo::getObject(IGameInfoCallback *cb)
-			// logAi->trace("Decomposing special action %s returns %s", firstBlockedAction->toString(), subGoal->toString());
-			logAi->trace("Decomposing special action %s", firstBlockedAction->toString());
+			// subGoal->toString() was crashing sometims before thread local fix with SET_GLOBAL_STATE_TBB
+			logAi->trace("Decomposing special action %s returns %s", firstBlockedAction->toString(), subGoal->toString());
 #endif
 
 			if(!subGoal->invalid())