summaryrefslogtreecommitdiff
path: root/src/newgrf_engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/newgrf_engine.cpp')
-rw-r--r--src/newgrf_engine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_engine.cpp b/src/newgrf_engine.cpp
index 660b7e476..60d03fcc3 100644
--- a/src/newgrf_engine.cpp
+++ b/src/newgrf_engine.cpp
@@ -1233,7 +1233,7 @@ void CommitVehicleListOrderChanges()
FOR_ALL_ENGINES(e) {
*ordering.Append() = e->index;
}
- QSortT(ordering.Begin(), ordering.Length(), EnginePreSort);
+ QSortT(ordering.Begin(), ordering.size(), EnginePreSort);
/* Apply Insertion-Sort operations */
const ListOrderChange *end = _list_order_changes.End();