summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-04-11 21:04:03 +0000
committerpeter1138 <peter1138@openttd.org>2007-04-11 21:04:03 +0000
commit3148fdca59bb620685663c7cb26571f6a0a24113 (patch)
treebb3bdbca60f3320458aaf7a9f6d6d1da9cc03590 /src/openttd.cpp
parentf7a92a2f16ec59a3cfbe19144c7217e88f1a3e6f (diff)
downloadopenttd-3148fdca59bb620685663c7cb26571f6a0a24113.tar.xz
(svn r9601) -Codechange: Store grf file reference in station spec, not just GRF ID
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 7cc37f2f2..263751c62 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -57,6 +57,7 @@
#include "date.h"
#include "clear_map.h"
#include "fontcache.h"
+#include "newgrf.h"
#include "newgrf_config.h"
#include "newgrf_house.h"
#include "player_face.h"
@@ -1586,7 +1587,7 @@ bool AfterLoadGame()
if (statspec != NULL) {
wp->stat_id = _m[wp->xy].m4 + 1;
- wp->grfid = statspec->grfid;
+ wp->grfid = statspec->grffile->grfid;
wp->localidx = statspec->localidx;
} else {
/* No custom graphics set, so set to default. */