Changeset - r9531:91de36482f00
[Not reviewed]
master
0 1 0
skidd13 - 16 years ago 2008-06-16 17:10:55
skidd13@openttd.org
(svn r13535) -Codechange: Protect GUIList internals
-Fix: VL_FIST_SORT should be set after list rebuild too
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/sortlist_type.h
Show inline comments
 
@@ -32,7 +32,7 @@ class GUIList : public SmallVector<T, 32
 
public:
 
	typedef int CDECL SortFunction(const T*, const T*);
 

	
 
public: // Temporary: public for conversion only
 
protected:
 
	SortFunction* const *func_list; ///< The sort criteria functions
 
	SortListFlags flags;            ///< used to control sorting/resorting/etc.
 
	uint8 sort_type;                ///< what criteria to sort on
 
@@ -249,7 +249,7 @@ public:
 
	void RebuildDone()
 
	{
 
		CLRBITS(this->flags, VL_REBUILD);
 
		SETBITS(this->flags, VL_RESORT);
 
		SETBITS(this->flags, VL_RESORT | VL_FIRST_SORT);
 
	}
 
};
 

	
0 comments (0 inline, 0 general)