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");
|
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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user