1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-28 00:49:11 +00:00

(svn r1564) ISO C90 forbids mixed declarations and code (bad bjarni, no cookie)

This commit is contained in:
tron
2005-01-19 05:55:30 +00:00
parent 69065b53c8
commit a6d1544447

View File

@@ -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);
}