Skip to content

Commit

Permalink
Fix crash when text not found in DoDisplayText
Browse files Browse the repository at this point in the history
  • Loading branch information
MantisLord committed Sep 18, 2021
1 parent b465dcf commit 8b89bec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/game/Globals/ObjectMgr.cpp
Expand Up @@ -9938,9 +9938,8 @@ bool DoDisplayText(WorldObject* source, int32 entry, Unit const* target, uint32
if (bct->maleText.size() > 0 && !bct->maleText[DEFAULT_LOCALE].empty())
content = bct->maleText;
}
else
else if (MangosStringLocale const* data = sObjectMgr.GetMangosStringLocale(entry))
{
MangosStringLocale const* data = sObjectMgr.GetMangosStringLocale(entry);
lang = data->LanguageId;
type = data->Type;
sound = data->SoundId;
Expand Down

0 comments on commit 8b89bec

Please sign in to comment.