fix(Core/Misc): Fix NextPage Data Type in PageText Structure and Improve Logging Messages (#21586)

This commit is contained in:
Kitzunu 2025-02-23 01:58:21 +01:00 committed by GitHub
parent d97563be44
commit 5d32676193
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 3 deletions

View file

@ -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;
}

View file

@ -56,7 +56,7 @@ struct PlayerLevelInfo;
struct PageText
{
std::string Text;
uint16 NextPage;
uint32 NextPage;
};
/// Key for storing temp summon data in TempSummonDataContainer

View file

@ -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);