Core/Misc: Sync database schema with master

This commit is contained in:
Aokromes committed 2017-04-18 14:11:21 +02:00
1 parent c074908449
commit 6d25d89e2b
9 files changed
+195 -103

No files matched your search

+4 -4
View File
@@ -396,10 +396,10 @@ void WorldSession::HandlePageTextQueryOpcode(WorldPacket& recvData)
{
std::string Text = pageText->Text;
int loc_idx = GetSessionDbLocaleIndex();
if (loc_idx >= 0)
if (PageTextLocale const* player = sObjectMgr->GetPageTextLocale(pageID))
ObjectMgr::GetLocaleString(player->Text, loc_idx, Text);
LocaleConstant localeConstant = GetSessionDbLocaleIndex();
if (localeConstant >= LOCALE_ENUS)
if (PageTextLocale const* pageTextLocale = sObjectMgr->GetPageTextLocale(pageID))
ObjectMgr::GetLocaleString(pageTextLocale->Text, localeConstant, Text);
data << Text;
data << uint32(pageText->NextPageID);