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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user