From 528db72bf15b28e9eaaba0407c822fc911dd0119 Mon Sep 17 00:00:00 2001 From: sireus Date: Wed, 27 Apr 2011 21:03:11 +0000 Subject: [PATCH] fix cubescript execution crash(es) git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6379 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/command.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/src/command.cpp b/source/src/command.cpp index 1e9f8a54..59f47d81 100644 --- a/source/src/command.cpp +++ b/source/src/command.cpp @@ -441,6 +441,7 @@ vector seer_t2; // timestamp of last n3 (10) level-2 calls #endif char *executeret(const char *p) // all evaluation happens here, recursively { + if(!p || !p[0]) return NULL; bool noproblem = true; #if 0 if(execcontext>IEXC_CFG) // only PROMPT and MAP-CFG are checked for this, fooling with core/cfg at your own risk!