Mercurial > hg > openttd
changeset 3030:2c8975c87306 draft
(svn r3610) And one more (see r3608/r3609)
author | tron <tron@openttd.org> |
---|---|
date | Fri, 17 Feb 2006 16:42:08 +0000 |
parents | e90d0b5e9d31 |
children | 11a714e9fbb7 |
files | vehicle_gui.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/vehicle_gui.c +++ b/vehicle_gui.c @@ -571,8 +571,9 @@ } if (selected_id[0] != INVALID_ENGINE) { - byte cargo = ShipVehInfo(selected_id[0])->cargo_type; - byte refittable = ShipVehInfo(selected_id[0])->refittable; + const ShipVehicleInfo* svi = ShipVehInfo(selected_id[0]); + CargoID cargo = svi->cargo_type; + byte refittable = svi->refittable; for (i = SHIP_ENGINES_INDEX; i < SHIP_ENGINES_INDEX + NUM_SHIP_ENGINES; i++) { if (HASBIT(GetEngine(i)->player_avail, _local_player) && (