From aaeb2da8a2a8f0ab74c8cabd0ada5c0af9927e63 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sun, 30 Dec 2007 12:25:31 +0000 Subject: [PATCH] parsing fix git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1535 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/command.cpp b/source/src/command.cpp index 561a7251..c2fb9261 100644 --- a/source/src/command.cpp +++ b/source/src/command.cpp @@ -249,7 +249,7 @@ char *executeret(const char *p) // all evaluation hap ident *id = idents->access(c); if(!id) { - if(!isdigit(*c) && ((*c!='+' && *c!='-') || !isdigit(c[1]))) conoutf("unknown command: %s", c); + if(!isdigit(*c) && ((*c!='+' && *c!='-') || (*c && !isdigit(c[1])))) conoutf("unknown command: %s", c); setretval(newstring(c)); } else