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.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/newgrf_engine.cpp b/src/newgrf_engine.cpp
index 60d03fcc3..ce7cfdf24 100644
--- a/src/newgrf_engine.cpp
+++ b/src/newgrf_engine.cpp
@@ -1272,7 +1272,8 @@ void CommitVehicleListOrderChanges()
}
/* Clear out the queue */
- _list_order_changes.Reset();
+ _list_order_changes.clear();
+ _list_order_changes.shrink_to_fit();
}
/**