From ecf9b1aa2fba40b5254aa6af6508cde730ee67ad Mon Sep 17 00:00:00 2001 From: Evgeniy Meshcheryakov Date: Mon, 4 Sep 2023 10:08:56 +0300 Subject: [PATCH] Fix NKAI compilation with NKAI_PATHFINDER_TRACE_LEVEL>=2 --- AI/Nullkiller/Pathfinding/AINodeStorage.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AI/Nullkiller/Pathfinding/AINodeStorage.cpp b/AI/Nullkiller/Pathfinding/AINodeStorage.cpp index 4ff2e4ef9..7707033eb 100644 --- a/AI/Nullkiller/Pathfinding/AINodeStorage.cpp +++ b/AI/Nullkiller/Pathfinding/AINodeStorage.cpp @@ -1208,7 +1208,7 @@ bool AINodeStorage::hasBetterChain( "Block ineficient battle move %s->%s, hero: %s[%X], army %lld, mp diff: %i", source->coord.toString(), candidateNode->coord.toString(), - candidateNode->actor->hero->name, + candidateNode->actor->hero->getNameTranslated(), candidateNode->actor->chainMask, candidateNode->actor->armyValue, node.moveRemains - candidateNode->moveRemains); @@ -1232,7 +1232,7 @@ bool AINodeStorage::hasBetterChain( "Block ineficient move because of stronger army %s->%s, hero: %s[%X], army %lld, mp diff: %i", source->coord.toString(), candidateNode->coord.toString(), - candidateNode->actor->hero->name, + candidateNode->actor->hero->getNameTranslated(), candidateNode->actor->chainMask, candidateNode->actor->armyValue, node.moveRemains - candidateNode->moveRemains); @@ -1258,7 +1258,7 @@ bool AINodeStorage::hasBetterChain( "Block ineficient move because of stronger hero %s->%s, hero: %s[%X], army %lld, mp diff: %i", source->coord.toString(), candidateNode->coord.toString(), - candidateNode->actor->hero->name, + candidateNode->actor->hero->getNameTranslated(), candidateNode->actor->chainMask, candidateNode->actor->armyValue, node.moveRemains - candidateNode->moveRemains);