diff --git a/src/game/ChatCommands/Level2.cpp b/src/game/ChatCommands/Level2.cpp index 282c1da9..7e0020df 100644 --- a/src/game/ChatCommands/Level2.cpp +++ b/src/game/ChatCommands/Level2.cpp @@ -4899,7 +4899,7 @@ bool ChatHandler::HandleMmapPathCommand(char* args) path.calculate(x, y, z); PointsArray pointPath = path.getPath(); - PSendSysMessage("%s's path to %s:", target->GetName(), player->GetName()); + PSendSysMessage("%s's path to %s:", originUnit->GetName(), destinationUnit->GetName()); PSendSysMessage("Building %s", useStraightPath ? "StraightPath" : "SmoothPath"); PSendSysMessage("length " SIZEFMTD " type %u", pointPath.size(), path.getPathType());