about summary refs log tree commit diff
path: root/src/engine
diff options
context:
space:
mode:
authorfisted <van.fisted@googlemail.com>2011-05-20 02:43:31 +0200
committeroy <Tom_Adams@web.de>2011-06-11 19:13:27 +0200
commitd5b38048041788b3a7627b729974a7a3c96843f0 (patch)
treeb07b32463fce4e1a71633012a3eb153fbfbea7cc /src/engine
parentc1ebda73e3ca383e0c612da7dd3d341a51fe070b (diff)
downloadzcatch-d5b38048041788b3a7627b729974a7a3c96843f0.tar.gz
zcatch-d5b38048041788b3a7627b729974a7a3c96843f0.zip
fixed "no such cmd ''" on whole-line comments in cfg
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/shared/console.cpp3
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)