1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

fix: simplify NK2AI_TRACE_LEVEL 2 to avoid crash on some maps

This commit is contained in:
Mircea TheHonestCTO
2025-08-28 01:52:55 +02:00
parent 65a994b199
commit 0fc166b404

View File

@@ -98,7 +98,9 @@ Goals::TGoalVec CaptureObjectsBehavior::getVisitGoals(
auto subGoal = firstBlockedAction->decompose(nullkiller, path.targetHero);
#if NK2AI_TRACE_LEVEL >= 2
logAi->trace("Decomposing special action %s returns %s", firstBlockedAction->toString(), subGoal->toString());
// 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());
#endif
if(!subGoal->invalid())