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
3 changed files with 7 additions and 3 deletions
+5 -1
View File
@@ -5848,7 +5848,11 @@ void ObjectMgr::LoadPageTextLocales()
QueryResult result = WorldDatabase.Query("SELECT ID, locale, Text FROM page_text_locale"); QueryResult result = WorldDatabase.Query("SELECT ID, locale, Text FROM page_text_locale");
if (!result) if (!result)
{
LOG_WARN("server.loading", ">> Loaded 0 page texts. DB table `page_text_locale` is empty!");
LOG_INFO("server.loading", " ");
return; return;
}
do do
{ {
@@ -5876,7 +5880,7 @@ void ObjectMgr::LoadInstanceTemplate()
if (!result) 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", " "); LOG_INFO("server.loading", " ");
return; return;
} }
+1 -1
View File
@@ -56,7 +56,7 @@ struct PlayerLevelInfo;
struct PageText struct PageText
{ {
std::string Text; std::string Text;
uint16 NextPage; uint32 NextPage;
}; };
/// Key for storing temp summon data in TempSummonDataContainer /// Key for storing temp summon data in TempSummonDataContainer
+1 -1
View File
@@ -393,7 +393,7 @@ void WorldSession::HandlePageTextQueryOpcode(WorldPacket& recvData)
ObjectMgr::GetLocaleString(player->Text, loc_idx, Text); ObjectMgr::GetLocaleString(player->Text, loc_idx, Text);
data << Text; data << Text;
data << uint32(pageText->NextPage); data << pageText->NextPage;
pageID = pageText->NextPage; pageID = pageText->NextPage;
} }
SendPacket(&data); SendPacket(&data);