summaryrefslogtreecommitdiff
path: root/src/station_gui.cpp
diff options
context:
space:
mode:
authorskidd13 <skidd13@openttd.org>2008-05-27 10:27:30 +0000
committerskidd13 <skidd13@openttd.org>2008-05-27 10:27:30 +0000
commit6d46851b61e482965412d2e4b74d1846efefe21d (patch)
treefd62823c74718a114d36433d78d65548e47df97f /src/station_gui.cpp
parente42690b38166a3bde7aec37a51547a45f6bee102 (diff)
downloadopenttd-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.cpp2
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;