From acee7b2ebe43148614718edccbb6fe26f26ed590 Mon Sep 17 00:00:00 2001 From: Lucas GAUTHERON Date: Tue, 16 Aug 2011 12:31:31 +0000 Subject: [PATCH] oops (const couldn't overwrite) git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6580 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/command.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/src/command.cpp b/source/src/command.cpp index 49eec2c7..d8292359 100644 --- a/source/src/command.cpp +++ b/source/src/command.cpp @@ -173,6 +173,12 @@ void constant(const char *name, const char *action) return; } b->isconst = true; + if(action && action[0]) + { + if(b->action!=b->executing) delete[] b->action; + b->action = newstring(action); + if(b->persist!=persistidents) b->persist = persistidents; + } } else {