summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-05-27 19:58:32 +0000
committersmatz <smatz@openttd.org>2008-05-27 19:58:32 +0000
commitee9a9503cee6b65d1258c808ede2523116b61af4 (patch)
treeaac8dd6f242b64e431d178f38a8fd3f3ceefe251 /src
parentee904e1df5da48e7e055aa649833d95626a0deab (diff)
downloadopenttd-ee9a9503cee6b65d1258c808ede2523116b61af4.tar.xz
(svn r13296) -Fix (r13276): VL_FIRST_SORT was never reset
Diffstat (limited to 'src')
-rw-r--r--src/sortlist_type.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sortlist_type.h b/src/sortlist_type.h
index 6e6d9c7fa..46dcc0839 100644
--- a/src/sortlist_type.h
+++ b/src/sortlist_type.h
@@ -205,6 +205,7 @@ public:
const bool desc = HASBITS(this->flags, VL_DESC);
if (HASBITS(this->flags, VL_FIRST_SORT)) {
+ CLRBITS(this->flags, VL_FIRST_SORT);
qsort(this->data, this->items, sizeof(T), (int (CDECL *)(const void *, const void *))compare);
if (desc) this->Reverse();