oops (const couldn't overwrite)

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6580 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lucas GAUTHERON
2011-08-16 12:31:31 +00:00
parent dbca100335
commit acee7b2ebe
+6
View File
@@ -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
{