summaryrefslogtreecommitdiff
path: root/src/disaster_cmd.cpp
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2007-03-08 21:39:34 +0000
committerbjarni <bjarni@openttd.org>2007-03-08 21:39:34 +0000
commitc2b7d0192d2b07ca7e4d87d583dabb2e43df49ec (patch)
treecfdbc180c9140ada4cb0bc22da9defe931609d16 /src/disaster_cmd.cpp
parentdaeac3d310a6bf367eb77f0b965f8930dc187899 (diff)
downloadopenttd-c2b7d0192d2b07ca7e4d87d583dabb2e43df49ec.tar.xz
(svn r9072) -Codechange: [Orders] added methods to orders to free them and check if they are in use
Diffstat (limited to 'src/disaster_cmd.cpp')
-rw-r--r--src/disaster_cmd.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/disaster_cmd.cpp b/src/disaster_cmd.cpp
index 7a302ee61..bab9f4138 100644
--- a/src/disaster_cmd.cpp
+++ b/src/disaster_cmd.cpp
@@ -135,9 +135,7 @@ static void InitializeDisasterVehicle(Vehicle *v, int x, int y, byte z, Directio
v->owner = OWNER_NONE;
v->vehstatus = VS_UNCLICKABLE;
v->u.disaster.image_override = 0;
- v->current_order.type = OT_NOTHING;
- v->current_order.flags = 0;
- v->current_order.dest = 0;
+ v->current_order.Free();
DisasterVehicleUpdateImage(v);
VehiclePositionChanged(v);