mirror of https://github.com/OpenTTD/OpenTTD.git
(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:
parent
507de921c2
commit
4e8f3f7a99
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue