diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-03-23 14:21:12 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-03-23 14:21:12 +0000 |
commit | 035299f23a9207bb521b19e2f77154c276cf3033 (patch) | |
tree | 33d24274a6eb716d1d92f9bff074c3e81b8fb71e /application | |
parent | Other objects support in operator= (diff) | |
download | ilt-035299f23a9207bb521b19e2f77154c276cf3033.tar.bz2 ilt-035299f23a9207bb521b19e2f77154c276cf3033.tar.xz ilt-035299f23a9207bb521b19e2f77154c276cf3033.zip |
Other objects support in removeAll/clear
removeAll requires a type that is one of Others, clear clears everything
regardless of type.
Diffstat (limited to 'application')
-rw-r--r-- | application/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/application/main.cpp b/application/main.cpp index 1ca2192..9120376 100644 --- a/application/main.cpp +++ b/application/main.cpp @@ -90,7 +90,7 @@ public: for (int N = 0; N < 6; N++) { train->create<RailVehicle>(b47); } - train->orders.removeAll(); + train->orders.clear(); train->orders.create<FreeRoam>(&train->orders); train->currentActivity = train->orders.current()->createActivity(); @@ -113,7 +113,7 @@ public: mainLoop(); - world.removeAll(); + world.clear(); return 0; } }; |