diff options
author | rubidium <rubidium@openttd.org> | 2008-05-27 21:41:00 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-27 21:41:00 +0000 |
commit | 5c5ee7eb579d0ee6655e0b81f6169dca7632ab97 (patch) | |
tree | 086ec523744482fc8374da46db2a402e4b5c5d0a /src/station_gui.cpp | |
parent | 49a0bd7f90f3c48f81e9ad0bcabe87a77cf36e0f (diff) | |
download | openttd-5c5ee7eb579d0ee6655e0b81f6169dca7632ab97.tar.xz |
(svn r13301) -Fix [FS#1997]: resolve more MSVC 9 x64 warnings.
Diffstat (limited to 'src/station_gui.cpp')
-rw-r--r-- | src/station_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp index b3598c8a2..cf7935ef5 100644 --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -682,7 +682,7 @@ typedef std::list<CargoData> CargoDataList; */ struct StationViewWindow : public Window { uint32 cargo; ///< Bitmask of cargo types to expand - uint16 cargo_rows[NUM_CARGO]; ///< Header row for each cargo type + size_t cargo_rows[NUM_CARGO]; ///< Header row for each cargo type StationViewWindow(const WindowDesc *desc, WindowNumber window_number) : Window(desc, window_number) { @@ -751,7 +751,7 @@ struct StationViewWindow : public Window { } } } - SetVScrollCount(this, cargolist.size() + 1); // update scrollbar + SetVScrollCount(this, (int)cargolist.size() + 1); // update scrollbar /* disable some buttons */ this->SetWidgetDisabledState(SVW_RENAME, st->owner != _local_player); |