summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-02-28 20:28:08 +0000
committeryexo <yexo@openttd.org>2010-02-28 20:28:08 +0000
commit404df87b1f2e0c6ae8d71dd0ea83b55294f53af3 (patch)
tree868c12ba0cf41427a4c00eff31601f6e45398be4 /src/newgrf.cpp
parent333249ce501085405afabac8eb61a2c3ed599c0f (diff)
downloadopenttd-404df87b1f2e0c6ae8d71dd0ea83b55294f53af3.tar.xz
(svn r19295) -Codechange: introduce wrapper functions for GRFConfig::name/info
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index c3e0de903..512c949a6 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -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));
}