diff options
author | glx22 <glx22@users.noreply.github.com> | 2019-03-28 00:09:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-28 00:09:33 +0100 |
commit | 66dd7c3879123bb99b712375b66b577f81d53a96 (patch) | |
tree | 6231635658dab5ba63b776e9350884c083617cb1 /src/station_gui.cpp | |
parent | e817951bfdc229b404d5fec188c67f5202a0e774 (diff) | |
download | openttd-66dd7c3879123bb99b712375b66b577f81d53a96.tar.xz |
Fix: MSVC warnings (#7423)
Diffstat (limited to 'src/station_gui.cpp')
-rw-r--r-- | src/station_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp index 92c186a2e..edd02d6ae 100644 --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -205,7 +205,7 @@ protected: this->stations.shrink_to_fit(); this->stations.RebuildDone(); - this->vscroll->SetCount(this->stations.size()); // Update the scrollbar + this->vscroll->SetCount((uint)this->stations.size()); // Update the scrollbar } /** Sort stations by their name */ @@ -411,7 +411,7 @@ public: case WID_STL_LIST: { bool rtl = _current_text_dir == TD_RTL; - int max = min(this->vscroll->GetPosition() + this->vscroll->GetCapacity(), this->stations.size()); + int max = min(this->vscroll->GetPosition() + this->vscroll->GetCapacity(), (uint)this->stations.size()); int y = r.top + WD_FRAMERECT_TOP; for (int i = this->vscroll->GetPosition(); i < max; ++i) { // do until max number of stations of owner const Station *st = this->stations[i]; @@ -2331,7 +2331,7 @@ struct SelectStationWindow : Window { { if (!gui_scope) return; FindStationsNearby<T>(this->area, true); - this->vscroll->SetCount(_stations_nearby_list.size() + 1); + this->vscroll->SetCount((uint)_stations_nearby_list.size() + 1); this->SetDirty(); } }; |