(svn r10223) -Fix r10211: GCF_INIT_ONLY flag was never cleared
This commit is contained in:
@@ -144,6 +144,7 @@ GRFConfig **CopyGRFConfigList(GRFConfig **dst, const GRFConfig *src, bool init_o
|
|||||||
if (src->error->custom_message != NULL) c->error->custom_message = strdup(src->error->custom_message);
|
if (src->error->custom_message != NULL) c->error->custom_message = strdup(src->error->custom_message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CLRBIT(c->flags, GCF_INIT_ONLY);
|
||||||
if (init_only) SETBIT(c->flags, GCF_INIT_ONLY);
|
if (init_only) SETBIT(c->flags, GCF_INIT_ONLY);
|
||||||
|
|
||||||
*dst = c;
|
*dst = c;
|
||||||
|
Reference in New Issue
Block a user