summaryrefslogtreecommitdiff
path: root/src/station_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-27 22:02:26 +0000
committerrubidium <rubidium@openttd.org>2008-05-27 22:02:26 +0000
commit14d8aacebbbff6f498b27c9294dc39c575839a96 (patch)
treecda4084b87ffebc10da1b85a3aad77137e78476b /src/station_gui.cpp
parent5c5ee7eb579d0ee6655e0b81f6169dca7632ab97 (diff)
downloadopenttd-14d8aacebbbff6f498b27c9294dc39c575839a96.tar.xz
(svn r13302) -Fix (r13301): GCC doesn't necessarily like what MSVC likes...
Diffstat (limited to 'src/station_gui.cpp')
-rw-r--r--src/station_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp
index cf7935ef5..50fa33445 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
- size_t cargo_rows[NUM_CARGO]; ///< Header row for each cargo type
+ uint16 cargo_rows[NUM_CARGO]; ///< Header row for each cargo type
StationViewWindow(const WindowDesc *desc, WindowNumber window_number) : Window(desc, window_number)
{
@@ -721,7 +721,7 @@ struct StationViewWindow : public Window {
cargolist.push_back(CargoData(i, INVALID_STATION, st->goods[i].cargo.Count()));
/* Set the row for this cargo entry for the expand/hide button */
- this->cargo_rows[i] = cargolist.size();
+ this->cargo_rows[i] = (uint16)cargolist.size();
/* Add an entry for each distinct cargo source. */
const CargoList::List *packets = st->goods[i].cargo.Packets();