diff options
Diffstat (limited to 'game/vehicles/vehicle.cpp')
-rw-r--r-- | game/vehicles/vehicle.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/game/vehicles/vehicle.cpp b/game/vehicles/vehicle.cpp index cd2331d..8730d6d 100644 --- a/game/vehicles/vehicle.cpp +++ b/game/vehicles/vehicle.cpp @@ -1,8 +1,8 @@ #include "vehicle.h" +#include "game/activities/idle.h" #include "game/activity.h" #include "game/network/link.h" #include "game/objective.h" -#include "game/objectives/freeroam.h" #include "game/orders.h" #include "game/vehicles/linkHistory.h" #include <algorithm> @@ -18,8 +18,7 @@ Vehicle::Vehicle(const LinkPtr & l, float ld) : linkDist {ld} { linkHist.add(l, 0); - orders.create<FreeRoam>(&orders); - currentActivity = orders.current()->createActivity(); + currentActivity = std::make_unique<Idle>(); } void |