fix(Core/Crash): reload page GetSession check to avoid crash (#7451)

This commit is contained in:
Petric
2021-08-22 15:40:40 +01:00
committed by GitHub
parent 0818e44e67
commit 56a2f6d976
+2 -2
View File
@@ -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;
} }