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

This commit is contained in:
peter1138
2007-04-11 21:04:03 +00:00
parent f7a92a2f16
commit 3148fdca59
5 changed files with 9 additions and 7 deletions

View File

@@ -2539,7 +2539,7 @@ static void StationMapSpriteGroup(byte *buf, uint8 idcount, uint8 cidcount)
StationSpec *statspec = _cur_grffile->stations[stid];
statspec->spritegroup[CT_DEFAULT] = _cur_grffile->spritegroups[groupid];
statspec->grfid = _cur_grffile->grfid;
statspec->grffile = _cur_grffile;
statspec->localidx = stid;
SetCustomStationSpec(statspec);
}