aboutsummaryrefslogtreecommitdiff
path: root/src/game/Channel.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-19 16:05:13 -0600
committermegamage <none@none>2008-12-19 16:05:13 -0600
commit400f7b859693eef1043a75a18c369dd871ffb721 (patch)
tree5f480c9380d4125a57cbeb4315ef22ad2ab32a71 /src/game/Channel.cpp
parentcebaa3a703f36efeedc5fd786b6eacb7a93585c2 (diff)
*Temp fix for crash caused by AV creature. Need to find a way to allow summoned creatures to use RandomMovement.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Channel.cpp')
-rw-r--r--src/game/Channel.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/game/Channel.cpp b/src/game/Channel.cpp
index 17b761d3933..e05a9793857 100644
--- a/src/game/Channel.cpp
+++ b/src/game/Channel.cpp
@@ -628,7 +628,7 @@ void Channel::Invite(uint64 p, const char *newname)
SendToOne(&data, newp->GetGUID());
data.clear();
}
- MakePlayerInvited(&data, newp->GetGUID());
+ MakePlayerInvited(&data, newp->GetName());
SendToOne(&data, p);
}
@@ -918,13 +918,8 @@ void Channel::MakeNotModerated(WorldPacket *data)
}
// done 0x1D
-void Channel::MakePlayerInvited(WorldPacket *data, uint64 guid)
+void Channel::MakePlayerInvited(WorldPacket *data, const std::string& name)
{
- std::string name;
-
- if(!objmgr.GetPlayerNameByGUID(guid, name) || name.empty())
- return; // player name not found
-
MakeNotifyPacket(data, CHAT_PLAYER_INVITED_NOTICE);
*data << name;
}