(svn r9601) -Codechange: Store grf file reference in station spec, not just GRF ID

This commit is contained in:
2007-04-11 21:04:03 +00:00
parent b47078d690
commit 69982b1f01
5 changed files with 9 additions and 7 deletions

View File

@@ -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. */