Changeset - r15356:3504763440ee
[Not reviewed]
master
0 1 0
rubidium - 14 years ago 2010-06-22 08:01:38
rubidium@openttd.org
(svn r20009) -Fix [FS#3893]: sign sorting was unstable
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/signs_gui.cpp
Show inline comments
 
@@ -65,7 +65,9 @@ struct SignList {
 
			GetString(buf_cache, STR_SIGN_NAME, lastof(buf_cache));
 
		}
 

	
 
		return strcasecmp(buf, buf_cache);
 
		int r = strcasecmp(buf, buf_cache);
 

	
 
		return r != 0 ? r : ((*a)->index - (*b)->index);
 
	}
 

	
 
	void SortSignsList()
0 comments (0 inline, 0 general)