(svn r8881) -Feature: Allow built-in newgrf error messages to be translated, and load custom error messages properly.

This commit is contained in:
maedhros
2007-02-24 16:34:37 +00:00
parent 8ac0e7be21
commit 8b6350d3a3
5 changed files with 104 additions and 33 deletions

View File

@@ -124,7 +124,10 @@ GRFConfig **CopyGRFConfigList(GRFConfig **dst, const GRFConfig *src)
if (src->filename != NULL) c->filename = strdup(src->filename);
if (src->name != NULL) c->name = strdup(src->name);
if (src->info != NULL) c->info = strdup(src->info);
if (src->error != NULL) c->error = strdup(src->error);
if (src->error != NULL) {
c->error = CallocT<GRFError>(1);
memcpy(c->error, src->error, sizeof(GRFError));
}
*dst = c;
dst = &c->next;