mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r26744) -Fix [FS6085-ish]: ScriptListSorterItemDescending::FindNext failed to detect the end.
This commit is contained in:
parent
63047e51b1
commit
898ec49421
@ -362,7 +362,12 @@ public:
|
||||
this->has_no_more_items = true;
|
||||
return;
|
||||
}
|
||||
this->item_iter--;
|
||||
if (this->item_iter == this->list->items.begin()) {
|
||||
/* Use 'end' as marker for 'beyond begin' */
|
||||
this->item_iter = this->list->items.end();
|
||||
} else {
|
||||
this->item_iter--;
|
||||
}
|
||||
if (this->item_iter != this->list->items.end()) item_next = (*this->item_iter).first;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user