(svn r1564) ISO C90 forbids mixed declarations and code (bad bjarni, no cookie)
authortron
Wed, 19 Jan 2005 05:55:30 +0000
changeset 1063 03fed43e58fc
parent 1062 4131a8dfde94
child 1064 1b6564cec6be
(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);
 					}