Skip to content

Instantly share code, notes, and snippets.

@cyberium
Last active January 1, 2016 16:09
Show Gist options
  • Save cyberium/8168827 to your computer and use it in GitHub Desktop.
Save cyberium/8168827 to your computer and use it in GitHub Desktop.
diff --git a/ScriptMgr.cpp b/ScriptMgr.cpp
index b496a47..46185aa 100644
--- a/ScriptMgr.cpp
+++ b/ScriptMgr.cpp
@@ -202,7 +202,7 @@ void DoOrSimulateScriptTextForMap(int32 iTextEntry, uint32 uiCreatureEntry, Map*
}
debug_log("SD2: DoOrSimulateScriptTextForMap: text entry=%i, Sound=%u, Type=%u, Language=%u, Emote=%u",
- iTextEntry, pData->SoundId, pData->Type, pData->Language, pData->Emote);
+ iTextEntry, pData->SoundId, pData->Type, pData->LanguageId, pData->Emote);
if (pData->Type != CHAT_TYPE_ZONE_YELL)
{
@@ -214,9 +214,9 @@ void DoOrSimulateScriptTextForMap(int32 iTextEntry, uint32 uiCreatureEntry, Map*
pMap->PlayDirectSoundToMap(pData->SoundId);
if (pCreatureSource) // If provided pointer for sayer, use direct version
- pMap->MonsterYellToMap(pCreatureSource->GetObjectGuid(), iTextEntry, pData->Language, pTarget);
+ pMap->MonsterYellToMap(pCreatureSource->GetObjectGuid(), iTextEntry, pData->LanguageId, pTarget);
else // Simulate yell
- pMap->MonsterYellToMap(pInfo, iTextEntry, pData->Language, pTarget);
+ pMap->MonsterYellToMap(pInfo, iTextEntry, pData->LanguageId, pTarget);
}
//*********************************
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment