From 161a51d2c8810bedf31800e769e4da267eae09eb Mon Sep 17 00:00:00 2001 From: Fernando-A-Rocha Date: Wed, 19 Jun 2024 14:25:19 +0100 Subject: [PATCH] debugscript: make syntaxMessage constexpr @TracerDS --- Server/mods/deathmatch/logic/CConsoleCommands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/mods/deathmatch/logic/CConsoleCommands.cpp b/Server/mods/deathmatch/logic/CConsoleCommands.cpp index 91f1fcc1ec..98b456d391 100644 --- a/Server/mods/deathmatch/logic/CConsoleCommands.cpp +++ b/Server/mods/deathmatch/logic/CConsoleCommands.cpp @@ -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 '"; + constexpr const char* syntaxMessage = "debugscript: Syntax is 'debugscript '"; // Validate arguments if (!szArguments || std::strlen(szArguments) != 1 || !std::isdigit(szArguments[0])) {