Core/Misc: Sync database schema with master

This commit is contained in:
Chazy Chaz
2017-04-18 13:06:09 +02:00
committed by Aokromes
parent db0da2cf5c
commit fbbe247114
12 changed files with 269 additions and 176 deletions

View File

@@ -299,14 +299,14 @@ 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->NextPage);
pageID = pageText->NextPage;
data << uint32(pageText->NextPageID);
pageID = pageText->NextPageID;
}
SendPacket(&data);