We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9584e21 commit a4d8c7eCopy full SHA for a4d8c7e
src/server/menus/MenuRenderer.cpp
@@ -245,11 +245,12 @@ void MenuRenderer::PerformMenuAction(std::string button)
245
{
246
CCommand tokenizedArgs;
247
tokenizedArgs.Tokenize(cmd.c_str());
248
+ if (tokenizedArgs.ArgC() <= 0) return;
249
250
std::string commandName = (tokenizedArgs[0] + 3);
251
252
std::vector<std::string> argsplit = TokenizeCommand(cmd.c_str());
- argsplit.erase(argsplit.begin());
253
+ if (argsplit.size() > 0) argsplit.erase(argsplit.begin());
254
255
if (g_commandsManager.FetchCommand(commandName) == nullptr)
256
return;
0 commit comments