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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user