mirror of https://github.com/OpenTTD/OpenTTD
(svn r13296) -Fix (r13276): VL_FIRST_SORT was never reset
parent
ee904e1df5
commit
ee9a9503ce
|
@ -205,6 +205,7 @@ public:
|
||||||
const bool desc = HASBITS(this->flags, VL_DESC);
|
const bool desc = HASBITS(this->flags, VL_DESC);
|
||||||
|
|
||||||
if (HASBITS(this->flags, VL_FIRST_SORT)) {
|
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);
|
qsort(this->data, this->items, sizeof(T), (int (CDECL *)(const void *, const void *))compare);
|
||||||
|
|
||||||
if (desc) this->Reverse();
|
if (desc) this->Reverse();
|
||||||
|
|
Loading…
Reference in New Issue