diff options
author | skidd13 <skidd13@openttd.org> | 2008-05-27 10:27:30 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2008-05-27 10:27:30 +0000 |
commit | 6d46851b61e482965412d2e4b74d1846efefe21d (patch) | |
tree | fd62823c74718a114d36433d78d65548e47df97f /src/station_gui.cpp | |
parent | e42690b38166a3bde7aec37a51547a45f6bee102 (diff) | |
download | openttd-6d46851b61e482965412d2e4b74d1846efefe21d.tar.xz |
(svn r13286) -Codechange: GUIList Sort returns now if the list sequence has been altered
Diffstat (limited to 'src/station_gui.cpp')
-rw-r--r-- | src/station_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp index 0f7cdf6e7..0d8f481d9 100644 --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -197,7 +197,7 @@ protected: /** Sort the stations list */ void SortStationsList() { - this->stations.Sort(); + if (!this->stations.Sort()) return; /* Reset name sorter sort cache */ this->last_station = NULL; |