mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[7482] Fixed recently added crash code in text emote handler.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
7f125ce0c3
commit
1dcbbd7f48
2 changed files with 2 additions and 2 deletions
|
|
@ -587,7 +587,7 @@ void WorldSession::HandleTextEmoteOpcode( WorldPacket & recv_data )
|
|||
GetPlayer()->GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_DO_EMOTE, text_emote, 0, unit);
|
||||
|
||||
//Send scripted event call
|
||||
if (unit->GetTypeId()==TYPEID_UNIT && Script)
|
||||
if (unit && unit->GetTypeId()==TYPEID_UNIT && Script)
|
||||
Script->ReceiveEmote(GetPlayer(),(Creature*)unit,text_emote);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue