forked from mirror/OpenTTD
(svn r19295) -Codechange: introduce wrapper functions for GRFConfig::name/info
This commit is contained in:
@@ -4334,7 +4334,7 @@ static void DisableStaticNewGRFInfluencingNonStaticNewGRFs(GRFConfig *c)
|
||||
delete c->error;
|
||||
c->status = GCS_DISABLED;
|
||||
c->error = new GRFError(STR_NEWGRF_ERROR_MSG_FATAL, STR_NEWGRF_ERROR_STATIC_GRF_CAUSES_DESYNC);
|
||||
c->error->data = strdup(_cur_grfconfig->name);
|
||||
c->error->data = strdup(_cur_grfconfig->GetName());
|
||||
|
||||
ClearTemporaryNewGRFData(GetFileByGRFID(c->ident.grfid));
|
||||
}
|
||||
|
Reference in New Issue
Block a user