[Styling] Minor code styling changes

This commit is contained in:
Antz 2021-01-12 18:37:15 +00:00
parent 507fb517c9
commit 7c4c25837b
2 changed files with 4 additions and 2 deletions

View File

@ -1336,10 +1336,12 @@ void ChatHandler::ExecuteCommand(const char* text)
} }
if (ChatCommand* showCommand = (strlen(command->Name) == 0 && parentCommand ? parentCommand : command)) if (ChatCommand* showCommand = (strlen(command->Name) == 0 && parentCommand ? parentCommand : command))
{
if (ChatCommand* childs = showCommand->ChildCommands) if (ChatCommand* childs = showCommand->ChildCommands)
{ {
ShowHelpForSubCommands(childs, showCommand->Name); ShowHelpForSubCommands(childs, showCommand->Name);
} }
}
SetSentErrorMessage(true); SetSentErrorMessage(true);
} }

View File

@ -26,7 +26,7 @@
#include "ObjectMgr.h" #include "ObjectMgr.h"
#include "ProgressBar.h" #include "ProgressBar.h"
class ChatCommand; // Forward declaration of class ChatCommand; // Forward declaration of
INSTANTIATE_SINGLETON_1(CommandMgr); INSTANTIATE_SINGLETON_1(CommandMgr);
@ -114,7 +114,7 @@ void CommandMgr::GetCommandHelpLocaleString(uint32 commandId, int32 loc_idx, std
if (namePtr && il->HelpText.size() > size_t(loc_idx) && !il->HelpText[loc_idx].empty()) if (namePtr && il->HelpText.size() > size_t(loc_idx) && !il->HelpText[loc_idx].empty())
{ {
*namePtr = il->HelpText[loc_idx]; *namePtr = il->HelpText[loc_idx];
} }
} }
} }
} }