*Temp fix for crash caused by AV creature. Need to find a way to allow summoned creatures to use RandomMovement.
--HG-- branch : trunk
This commit is contained in:
1 parent
cebaa3a703
commit
400f7b8596
41 files changed
+1085
-921
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user