src/openttd.cpp
branchnoai
changeset 9599 949374e83b78
parent 9574 698395509d12
child 9601 b499fdd106d5
--- a/src/openttd.cpp	Sun Apr 15 00:17:57 2007 +0000
+++ b/src/openttd.cpp	Sun Apr 15 00:23:24 2007 +0000
@@ -25,6 +25,7 @@
 #include "gfx.h"
 #include "gfxinit.h"
 #include "gui.h"
+#include "landscape.h"
 #include "station.h"
 #include "station_map.h"
 #include "town_map.h"
@@ -58,6 +59,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"
@@ -1595,7 +1597,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. */