From 69982b1f018d120bd99338f9260760984a5ce98b Mon Sep 17 00:00:00 2001 From: peter1138 Date: Wed, 11 Apr 2007 21:04:03 +0000 Subject: (svn r9601) -Codechange: Store grf file reference in station spec, not just GRF ID --- src/openttd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/openttd.cpp') 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. */ -- cgit v1.2.3-54-g00ecf