forked from mirror/OpenTTD
(svn r14776) -Fix (r14742): ListPositionMap relied on std::map having sorted the map, which is now done by a manual key sorter on SmallMap. This fixes engine ID list sorting.
This commit is contained in:
@@ -1114,6 +1114,9 @@ void CommitVehicleListOrderChanges()
|
||||
}
|
||||
}
|
||||
|
||||
/* std::map sorted by default, SmallMap does not */
|
||||
lptr_map.SortByKey();
|
||||
|
||||
/* Get the target position, if it exists */
|
||||
if (target_e != NULL) {
|
||||
uint16 target_position = target_e->list_position;
|
||||
|
Reference in New Issue
Block a user