diff options
author | frosch <frosch@openttd.org> | 2012-11-27 21:54:11 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-11-27 21:54:11 +0000 |
commit | 4e8f3f7a99277c38ee66591bde05212de6ccf950 (patch) | |
tree | 7dd4fbbd7577bd34e4c693d404074d57813d3c25 /src | |
parent | 507de921c2441190e07c7a785f50e99ad0417641 (diff) | |
download | openttd-4e8f3f7a99277c38ee66591bde05212de6ccf950.tar.xz |
(svn r24770) -Fix-ish: Calling GUIList::Sort repeatedly has no use without GUIList::NeedResort since the latter has the sideeffects.
Diffstat (limited to 'src')
-rw-r--r-- | src/network/network_gui.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index dbeb023b4..1aec7de7a 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -596,7 +596,9 @@ public: if (this->servers.NeedRebuild()) { this->BuildGUINetworkGameList(); } - this->SortNetworkGameList(); + if (this->servers.NeedResort()) { + this->SortNetworkGameList(); + } NetworkGameList *sel = this->server; /* 'Refresh' button invisible if no server selected */ |