From bb276ef5a9e93b3a043dc080b8135269fce14ca0 Mon Sep 17 00:00:00 2001 From: truelight Date: Sun, 23 Jan 2005 13:30:02 +0000 Subject: (svn r1612) -Fix: made sure that ->next pointers are set to NULL --- vehicle.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vehicle.c') diff --git a/vehicle.c b/vehicle.c index bc230838c..912357e7f 100644 --- a/vehicle.c +++ b/vehicle.c @@ -192,6 +192,8 @@ static Vehicle *InitializeVehicle(Vehicle *v) v->next = NULL; v->next_hash = 0xffff; v->string_id = 0; + v->next_shared = NULL; + v->prev_shared = NULL; /* random_bits is used to pick out a random sprite for vehicles which are technical the same (newgrf stuff). Because RandomRange() results in desyncs, and because it does -- cgit v1.2.3-54-g00ecf