diff options
author | tron <tron@openttd.org> | 2007-02-20 06:39:09 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2007-02-20 06:39:09 +0000 |
commit | 41d526415c0d959daa2b804ffd40b667eb011394 (patch) | |
tree | 85f0bc373c60289a8db6cdb3b68eaca446b336de /src/build_vehicle_gui.cpp | |
parent | 92bbe45dd031c7a14b9ba55a77a27d66cf07b876 (diff) | |
download | openttd-41d526415c0d959daa2b804ffd40b667eb011394.tar.xz |
(svn r8822) -Fix
Variable scope, const
Diffstat (limited to 'src/build_vehicle_gui.cpp')
-rw-r--r-- | src/build_vehicle_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build_vehicle_gui.cpp b/src/build_vehicle_gui.cpp index 8ccd8a444..51058e47a 100644 --- a/src/build_vehicle_gui.cpp +++ b/src/build_vehicle_gui.cpp @@ -505,7 +505,7 @@ static int DrawAircraftPurchaseInfo(int x, int y, EngineID engine_number, const /* Note, if the default capacity is selected by the refit capacity * callback, then the capacity shown is likely to be incorrect. */ SetDParam(0, cargo); - SetDParam(1, AircraftDefaultCargoCapacity(cargo, engine_number)); + SetDParam(1, AircraftDefaultCargoCapacity(cargo, avi)); SetDParam(2, STR_9842_REFITTABLE); DrawString(x, y, STR_PURCHASE_INFO_CAPACITY, 0); } |