Fixed wrong string format in HandleNpcUnFollowCommand

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-06-16 20:03:21 +02:00
parent 9b2d3b0a71
commit d65690ad38
+2 -2
View File
@@ -1672,7 +1672,7 @@ bool ChatHandler::HandleNpcUnFollowCommand(const char* /*args*/)
if (/*creature->GetMotionMaster()->empty() ||*/
creature->GetMotionMaster()->GetCurrentMovementGeneratorType () != TARGETED_MOTION_TYPE)
{
PSendSysMessage(LANG_CREATURE_NOT_FOLLOW_YOU);
PSendSysMessage(LANG_CREATURE_NOT_FOLLOW_YOU, creature->GetName());
SetSentErrorMessage(true);
return false;
}
@@ -1682,7 +1682,7 @@ bool ChatHandler::HandleNpcUnFollowCommand(const char* /*args*/)
if (mgen->GetTarget() != player)
{
PSendSysMessage(LANG_CREATURE_NOT_FOLLOW_YOU);
PSendSysMessage(LANG_CREATURE_NOT_FOLLOW_YOU, creature->GetName());
SetSentErrorMessage(true);
return false;
}