diff options
author | Krudor <erikstrandberg93@hotmail.com> | 2017-03-27 07:52:17 +0200 |
---|---|---|
committer | Aokromes <Aokromes@users.noreply.github.com> | 2017-03-27 07:52:17 +0200 |
commit | cde6f6705fb61cf2cd3282e139b5828c6815d3c3 (patch) | |
tree | 23bff0d1433752ebbbe1b9552a787054f5c5be39 | |
parent | 549dcc73062b97f51ee81d09ccfe85930f97a24f (diff) |
Modify previous commit to expected behavior
-rw-r--r-- | src/server/game/Texts/CreatureTextMgr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/Texts/CreatureTextMgr.cpp b/src/server/game/Texts/CreatureTextMgr.cpp index 8a5c052a093..829df1fdf77 100644 --- a/src/server/game/Texts/CreatureTextMgr.cpp +++ b/src/server/game/Texts/CreatureTextMgr.cpp @@ -248,7 +248,8 @@ uint32 CreatureTextMgr::SendChat(Creature* source, uint8 textGroup, WorldObject if (sound) finalSound = sound; else if (BroadcastTextEntry const* bct = sBroadcastTextStore.LookupEntry(iter->BroadcastTextId)) - finalSound = bct->SoundID[source->getGender() == GENDER_FEMALE ? 1 : 0]; + if (uint32 broadcastTextSoundId = bct->SoundID[source->getGender() == GENDER_FEMALE ? 1 : 0]) + finalSound = broadcastTextSoundId; if (range == TEXT_RANGE_NORMAL) range = iter->TextRange; |