Changeset - r19815:f6f84e811034
[Not reviewed]
master
0 1 0
frosch - 12 years ago 2012-11-27 21:54:11
frosch@openttd.org
(svn r24770) -Fix-ish: Calling GUIList::Sort repeatedly has no use without GUIList::NeedResort since the latter has the sideeffects.
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/network/network_gui.cpp
Show inline comments
 
@@ -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 */
0 comments (0 inline, 0 general)