Fix order list corruption when drag-moving towards end of list

Fixes regression in 0bb9207f4d
This commit is contained in:
Jonathan G Rennison
2019-02-02 23:30:05 +00:00
parent 7bcd921871
commit 47b8f9b286
2 changed files with 15 additions and 2 deletions

View File

@@ -553,6 +553,7 @@ private:
StationID GetBestLoadableNext(const Vehicle *v, const Order *o1, const Order *o2) const;
void ReindexOrderList();
Order *GetOrderAtFromList(int index) const;
Order *first; ///< First order of the order list.
std::vector<Order *> order_index; ///< NOSAVE: Vector index of order list.