mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
fix(Core/Misc): Fix NextPage Data Type in PageText Structure and Improve Logging Messages (#21586)
This commit is contained in:
@@ -5848,7 +5848,11 @@ void ObjectMgr::LoadPageTextLocales()
|
||||
QueryResult result = WorldDatabase.Query("SELECT ID, locale, Text FROM page_text_locale");
|
||||
|
||||
if (!result)
|
||||
{
|
||||
LOG_WARN("server.loading", ">> Loaded 0 page texts. DB table `page_text_locale` is empty!");
|
||||
LOG_INFO("server.loading", " ");
|
||||
return;
|
||||
}
|
||||
|
||||
do
|
||||
{
|
||||
@@ -5876,7 +5880,7 @@ void ObjectMgr::LoadInstanceTemplate()
|
||||
|
||||
if (!result)
|
||||
{
|
||||
LOG_WARN("server.loading", ">> Loaded 0 instance templates. DB table `page_text` is empty!");
|
||||
LOG_WARN("server.loading", ">> Loaded 0 instance templates. DB table `instance_template` is empty!");
|
||||
LOG_INFO("server.loading", " ");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ struct PlayerLevelInfo;
|
||||
struct PageText
|
||||
{
|
||||
std::string Text;
|
||||
uint16 NextPage;
|
||||
uint32 NextPage;
|
||||
};
|
||||
|
||||
/// Key for storing temp summon data in TempSummonDataContainer
|
||||
|
||||
@@ -393,7 +393,7 @@ void WorldSession::HandlePageTextQueryOpcode(WorldPacket& recvData)
|
||||
ObjectMgr::GetLocaleString(player->Text, loc_idx, Text);
|
||||
|
||||
data << Text;
|
||||
data << uint32(pageText->NextPage);
|
||||
data << pageText->NextPage;
|
||||
pageID = pageText->NextPage;
|
||||
}
|
||||
SendPacket(&data);
|
||||
|
||||
Reference in New Issue
Block a user