fix(Core/Crash): reload page GetSession check to avoid crash (#7451)
This commit is contained in:
@@ -856,7 +856,7 @@ public:
|
|||||||
LOG_INFO("server.loading", "Re-Loading Page Texts...");
|
LOG_INFO("server.loading", "Re-Loading Page Texts...");
|
||||||
sObjectMgr->LoadPageTexts();
|
sObjectMgr->LoadPageTexts();
|
||||||
handler->SendGlobalGMSysMessage("DB table `page_texts` reloaded.");
|
handler->SendGlobalGMSysMessage("DB table `page_texts` reloaded.");
|
||||||
handler->GetSession()->SendNotification("You need to delete your client cache or change the cache number in config in order for your players see the changes.");
|
handler->SendGlobalGMSysMessage("You need to delete your client cache or change the cache number in config in order for your players see the changes.");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1058,7 +1058,7 @@ public:
|
|||||||
LOG_INFO("server.loading", "Re-Loading Page Text Locale ... ");
|
LOG_INFO("server.loading", "Re-Loading Page Text Locale ... ");
|
||||||
sObjectMgr->LoadPageTextLocales();
|
sObjectMgr->LoadPageTextLocales();
|
||||||
handler->SendGlobalGMSysMessage("DB table `page_text_locale` reloaded.");
|
handler->SendGlobalGMSysMessage("DB table `page_text_locale` reloaded.");
|
||||||
handler->GetSession()->SendNotification("You need to delete your client cache or change the cache number in config in order for your players see the changes.");
|
handler->SendGlobalGMSysMessage("You need to delete your client cache or change the cache number in config in order for your players see the changes.");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user