Fix logic on namego

Now is possible to namego to a player inside an arena, by filip.havlicked
Closes issue #2130

--HG--
branch : trunk
This commit is contained in:
Tartalo
2010-06-24 15:48:17 +02:00
parent 38fa3c212b
commit e0507a4a8d
+1 -1
View File
@@ -817,7 +817,7 @@ bool ChatHandler::HandleNamegoCommand(const char* args)
if (pMap->IsBattleGroundOrArena())
{
// only allow if gm mode is on
if (!target->isGameMaster())
if (!_player->isGameMaster())
{
PSendSysMessage(LANG_CANNOT_GO_TO_BG_GM,nameLink.c_str());
SetSentErrorMessage(true);