From 0f0e7e43cf09c0ff82e4119b08956670160aaa58 Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 22 Apr 2012 16:28:14 +0000 Subject: (svn r24166) -Codechange: Turn NewGRFClass::Get(Tid, uint) and GetCount(Tid) into non-static members GetSpec(uint) and GetSpecCount(). --- src/newgrf_station.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/newgrf_station.cpp') diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp index 90751cdcb..e48ad935d 100644 --- a/src/newgrf_station.cpp +++ b/src/newgrf_station.cpp @@ -805,13 +805,12 @@ void DeallocateSpecFromStation(BaseStation *st, byte specindex) */ bool DrawStationTile(int x, int y, RailType railtype, Axis axis, StationClassID sclass, uint station) { - const StationSpec *statspec; const DrawTileSprites *sprites = NULL; const RailtypeInfo *rti = GetRailTypeInfo(railtype); PaletteID palette = COMPANY_SPRITE_COLOUR(_local_company); uint tile = 2; - statspec = StationClass::Get(sclass, station); + const StationSpec *statspec = StationClass::Get(sclass)->GetSpec(station); if (statspec == NULL) return false; if (HasBit(statspec->callback_mask, CBM_STATION_SPRITE_LAYOUT)) { -- cgit v1.2.3-70-g09d2