1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-25 07:29:10 +00:00

(svn r24770) -Fix-ish: Calling GUIList::Sort repeatedly has no use without GUIList::NeedResort since the latter has the sideeffects.

This commit is contained in:
frosch
2012-11-27 21:54:11 +00:00
parent 507de921c2
commit 4e8f3f7a99

View File

@@ -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 */