(svn r1564) ISO C90 forbids mixed declarations and code (bad bjarni, no cookie)
authortron
Wed, 19 Jan 2005 05:55:30 +0000
changeset 1063 67d38cf7ed26
parent 1062 380020506973
child 1064 2242cd7419bb
(svn r1564) ISO C90 forbids mixed declarations and code (bad bjarni, no cookie)
vehicle.c
--- a/vehicle.c	Wed Jan 19 01:18:29 2005 +0000
+++ b/vehicle.c	Wed Jan 19 05:55:30 2005 +0000
@@ -1464,8 +1464,10 @@
 				
 				if ( rvi2->flags & RVI_MULTIHEAD && !(rvi->flags & RVI_MULTIHEAD) &&  v->index == first->index) {
 					if (old_engine_type == u->engine_type ) {
+						Vehicle *w;
+
 						u = GetLastVehicleInChain(v);
-						Vehicle *w = GetPrevVehicleInChain(u);
+						w = GetPrevVehicleInChain(u);
 						w->next = NULL;
 						DeleteVehicle(u);
 					}