Changeset - r1111:39ac8836ceda
[Not reviewed]
master
0 2 0
truelight - 19 years ago 2005-01-23 13:30:02
truelight@openttd.org
(svn r1612) -Fix: made sure that ->next pointers are set to NULL
2 files changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
order_cmd.c
Show inline comments
 
@@ -89,6 +89,7 @@ static Order *AllocateOrder(void)
 
			uint index = order->index;
 
			memset(order, 0, sizeof(Order));
 
			order->index = index;
 
			order->next = NULL;
 
			return order;
 
		}
 
	}
vehicle.c
Show inline comments
 
@@ -192,6 +192,8 @@ static Vehicle *InitializeVehicle(Vehicl
 
	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
0 comments (0 inline, 0 general)