(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 f37b3740b3
commit c53e0a9ad5

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