diff options
author | tron <tron@openttd.org> | 2005-01-19 05:55:30 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-01-19 05:55:30 +0000 |
commit | a6d1544447ffa9047ea77c8b1d3fa7665c475c55 (patch) | |
tree | 028bd633ca2442a4309ec14fcf8f74682448fb0e | |
parent | 69065b53c868434dbdf68e5970930fe41d905a79 (diff) | |
download | openttd-a6d1544447ffa9047ea77c8b1d3fa7665c475c55.tar.xz |
(svn r1564) ISO C90 forbids mixed declarations and code (bad bjarni, no cookie)
-rw-r--r-- | vehicle.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); } |