Skip to content

Commit

Permalink
Fix redundant code usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Exitare committed Nov 18, 2024
1 parent cabbd0a commit d649d8e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/server/game/Motd/MotdMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ void MotdMgr::CreateWorldPackages()
}
void MotdMgr::LoadMotd()
{
uint32 oldMSTime = getMSTime();
uint32 realmId = sConfigMgr->GetOption<int32>("RealmID", 0);

// Load the main motd for the realm and assign it to enUS if available
Expand Down
2 changes: 1 addition & 1 deletion src/server/scripts/Commands/cs_reload.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ class reload_commandscript : public CommandScript
handler->SendGlobalGMSysMessage("DB table `motd` reloaded.");
auto locale = LOCALE_enUS;
if (Player* player = handler->GetPlayer())
locale = handler->GetPlayer()->GetSession()->GetSessionDbLocaleIndex();
locale = player->GetSession()->GetSessionDbLocaleIndex();

handler->SendGlobalSysMessage(sMotdMgr->GetMotd(locale));
return true;
Expand Down

0 comments on commit d649d8e

Please sign in to comment.