summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorskidd13 <skidd13@openttd.org>2008-06-16 17:10:55 +0000
committerskidd13 <skidd13@openttd.org>2008-06-16 17:10:55 +0000
commitf1cecb17956692cce49cfbbdb278e9755788e3e3 (patch)
treeb2f71e11b91929ea1ad543dbf4c68e9975087095 /src
parent0a19f738bc2a825214ebded91625434bd2cae7a0 (diff)
downloadopenttd-f1cecb17956692cce49cfbbdb278e9755788e3e3.tar.xz
(svn r13535) -Codechange: Protect GUIList internals
-Fix: VL_FIST_SORT should be set after list rebuild too
Diffstat (limited to 'src')
-rw-r--r--src/sortlist_type.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sortlist_type.h b/src/sortlist_type.h
index 07591bbd4..371de1a9c 100644
--- a/src/sortlist_type.h
+++ b/src/sortlist_type.h
@@ -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);
}
};