From d5b38048041788b3a7627b729974a7a3c96843f0 Mon Sep 17 00:00:00 2001 From: fisted Date: Fri, 20 May 2011 02:43:31 +0200 Subject: [PATCH] fixed "no such cmd ''" on whole-line comments in cfg --- src/engine/shared/console.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/engine/shared/console.cpp b/src/engine/shared/console.cpp index 032ff2ae6..3fd735439 100644 --- a/src/engine/shared/console.cpp +++ b/src/engine/shared/console.cpp @@ -247,6 +247,9 @@ void CConsole::ExecuteLineStroked(int Stroke, const char *pStr) if(ParseStart(&Result, pStr, (pEnd-pStr) + 1) != 0) return; + if (!*Result.m_pCommand) + return; + CCommand *pCommand = FindCommand(Result.m_pCommand, m_FlagMask); if(pCommand)