summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-02-25 20:05:31 +0000
committeryexo <yexo@openttd.org>2010-02-25 20:05:31 +0000
commita9c8dbc0a0e1f1fc4434cf0c83ff658ab8d9e3d9 (patch)
treebe44c4af53164b9307d95a0021c276ec2b57f41c /src/settings.cpp
parent4377b5fd44f5267f89f565e46cdb3646cf322a93 (diff)
downloadopenttd-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.cpp2
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;