diff options
author | alberth <alberth@openttd.org> | 2010-07-30 10:39:24 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-07-30 10:39:24 +0000 |
commit | 2dd77d0ef941c7ba67c16b41b9da2eca66290669 (patch) | |
tree | bd3746c412f559c3e737e7ff44ce7522057c233c /src/rail_gui.cpp | |
parent | f602e4310799db658473604d4f9e877f1218ce9e (diff) | |
download | openttd-2dd77d0ef941c7ba67c16b41b9da2eca66290669.tar.xz |
(svn r20241) -Codechange: Move variable declarations to their first use.
Diffstat (limited to 'src/rail_gui.cpp')
-rw-r--r-- | src/rail_gui.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp index 34e7034a5..0821f2487 100644 --- a/src/rail_gui.cpp +++ b/src/rail_gui.cpp @@ -1326,12 +1326,11 @@ public: break; case BRSW_NEWST_LIST: { - const StationSpec *statspec; int y = this->vscroll.GetScrolledRowFromWidget(pt.y, this, BRSW_NEWST_LIST, 0, this->line_height); if (y >= _railstation.station_count) return; /* Check station availability callback */ - statspec = GetCustomStationSpec(_railstation.station_class, y); + const StationSpec *statspec = GetCustomStationSpec(_railstation.station_class, y); if (statspec != NULL && HasBit(statspec->callback_mask, CBM_STATION_AVAIL) && GB(GetStationCallback(CBID_STATION_AVAILABILITY, 0, 0, statspec, NULL, INVALID_TILE), 0, 8) == 0) return; |