Skip to content

Commit

Permalink
debugscript: make syntaxMessage constexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando-A-Rocha committed Jun 19, 2024
1 parent 82818c4 commit 161a51d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/CConsoleCommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,7 @@ bool CConsoleCommands::WhoIs(CConsole* pConsole, const char* szArguments, CClien

bool CConsoleCommands::DebugScript(CConsole* pConsole, const char* szArguments, CClient* pClient, CClient* pEchoClient)
{
const char* syntaxMessage = "debugscript: Syntax is 'debugscript <mode: 0 (None), 1 (Errors), 2 (Errors + Warnings), 3 (All)>'";
constexpr const char* syntaxMessage = "debugscript: Syntax is 'debugscript <mode: 0 (None), 1 (Errors), 2 (Errors + Warnings), 3 (All)>'";

// Validate arguments
if (!szArguments || std::strlen(szArguments) != 1 || !std::isdigit(szArguments[0])) {
Expand Down

0 comments on commit 161a51d

Please sign in to comment.