diff options
| author | fisted <van.fisted@googlemail.com> | 2011-05-20 02:43:31 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-06-11 19:13:27 +0200 |
| commit | d5b38048041788b3a7627b729974a7a3c96843f0 (patch) | |
| tree | b07b32463fce4e1a71633012a3eb153fbfbea7cc /src/engine/shared | |
| parent | c1ebda73e3ca383e0c612da7dd3d341a51fe070b (diff) | |
| download | zcatch-d5b38048041788b3a7627b729974a7a3c96843f0.tar.gz zcatch-d5b38048041788b3a7627b729974a7a3c96843f0.zip | |
fixed "no such cmd ''" on whole-line comments in cfg
Diffstat (limited to 'src/engine/shared')
| -rw-r--r-- | src/engine/shared/console.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/engine/shared/console.cpp b/src/engine/shared/console.cpp index 032ff2ae..3fd73543 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) |