From 21e0c15d56438f2d7f3e15736c00dd8b8ac6bd1c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 6 May 2015 17:00:00 +0300 Subject: Add strong typed bool type AllowSort. --- src/utils/chatutils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils') diff --git a/src/utils/chatutils.cpp b/src/utils/chatutils.cpp index 903c6eefa..794a21330 100644 --- a/src/utils/chatutils.cpp +++ b/src/utils/chatutils.cpp @@ -115,7 +115,7 @@ void replaceVars(std::string &str) if (!target || target->getType() != ActorType::Player) { target = actorManager->findNearestLivingBeing( - localPlayer, 20, ActorType::Player, true); + localPlayer, 20, ActorType::Player, AllowSort_true); } if (target) replaceAll(str, "", target->getName()); @@ -128,7 +128,7 @@ void replaceVars(std::string &str) if (!target || target->getType() != ActorType::Monster) { target = actorManager->findNearestLivingBeing( - localPlayer, 20, ActorType::Monster, true); + localPlayer, 20, ActorType::Monster, AllowSort_true); } if (target) replaceAll(str, "", target->getName()); -- cgit v1.2.3-60-g2f50