From a6d1544447ffa9047ea77c8b1d3fa7665c475c55 Mon Sep 17 00:00:00 2001 From: tron Date: Wed, 19 Jan 2005 05:55:30 +0000 Subject: (svn r1564) ISO C90 forbids mixed declarations and code (bad bjarni, no cookie) --- vehicle.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vehicle.c b/vehicle.c index a4cb2a08e..688e78aa9 100644 --- a/vehicle.c +++ b/vehicle.c @@ -1464,8 +1464,10 @@ int32 CmdReplaceVehicle(int x, int y, uint32 flags, uint32 p1, uint32 p2) 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); } -- cgit v1.2.3-70-g09d2