diff options
Diffstat (limited to 'src/newgrf_engine.cpp')
-rw-r--r-- | src/newgrf_engine.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/newgrf_engine.cpp b/src/newgrf_engine.cpp index 3b950dc8a..75a082429 100644 --- a/src/newgrf_engine.cpp +++ b/src/newgrf_engine.cpp @@ -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; |