(svn r20400) -Codechange: let StationSpec use GRFFilePropsBase

This commit is contained in:
rubidium
2010-08-07 20:52:45 +00:00
parent 178f74c31c
commit b6a0806948
5 changed files with 16 additions and 16 deletions

View File

@@ -85,7 +85,7 @@ void MoveWaypointsToBaseStations()
for (OldWaypoint *wp = _old_waypoints.Begin(); wp != _old_waypoints.End(); wp++) {
for (uint i = 0; i < GetNumCustomStations(STAT_CLASS_WAYP); i++) {
const StationSpec *statspec = GetCustomStationSpec(STAT_CLASS_WAYP, i);
if (statspec != NULL && statspec->grffile->grfid == wp->grfid && statspec->localidx == wp->localidx) {
if (statspec != NULL && statspec->grf_prop.grffile->grfid == wp->grfid && statspec->grf_prop.local_id == wp->localidx) {
wp->spec = statspec;
break;
}