diff options
author | yexo <yexo@openttd.org> | 2010-02-25 20:05:31 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-02-25 20:05:31 +0000 |
commit | a9c8dbc0a0e1f1fc4434cf0c83ff658ab8d9e3d9 (patch) | |
tree | be44c4af53164b9307d95a0021c276ec2b57f41c /src/settings.cpp | |
parent | 4377b5fd44f5267f89f565e46cdb3646cf322a93 (diff) | |
download | openttd-a9c8dbc0a0e1f1fc4434cf0c83ff658ab8d9e3d9.tar.xz |
(svn r19255) -Codechange: encapsulate GRFIdentifier in GRFConfig instead of subclassing it
Diffstat (limited to 'src/settings.cpp')
-rw-r--r-- | src/settings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index 901860848..998cf547f 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -1224,7 +1224,7 @@ static GRFConfig *GRFLoadConfig(IniFile *ini, const char *grpname, bool is_stati /* Check for duplicate GRFID (will also check for duplicate filenames) */ bool duplicate = false; for (const GRFConfig *gc = first; gc != NULL; gc = gc->next) { - if (gc->grfid == c->grfid) { + if (gc->ident.grfid == c->ident.grfid) { ShowInfoF("ini: ignoring NewGRF '%s': duplicate GRF ID with '%s'", item->name, gc->filename); duplicate = true; break; |