diff src/openttd.cpp @ 6451:25c7793c8d9a draft

(svn r9601) -Codechange: Store grf file reference in station spec, not just GRF ID
author peter1138 <peter1138@openttd.org>
date Wed, 11 Apr 2007 21:04:03 +0000 (2007-04-11)
parents 2437ed7b277c
children 666fc3ef3174
line wrap: on
line diff
--- 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 @@
 
 				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. */