diff options
author | peter1138 <peter1138@openttd.org> | 2008-02-16 23:09:33 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-02-16 23:09:33 +0000 |
commit | 89e0b522e272a9e61132f5407506ee5af4eb3e0c (patch) | |
tree | 3dd31eb5e9bd46c000105c13091015f6f93ed00b | |
parent | 1aa52374615495f787df9c6331734a13f4a42e0c (diff) | |
download | openttd-89e0b522e272a9e61132f5407506ee5af4eb3e0c.tar.xz |
(svn r12164) -Fix (r12137, FS#1775]: Variable scope bug crept in
-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 1ddfb0d62..b58aa3ba3 100644 --- a/src/build_vehicle_gui.cpp +++ b/src/build_vehicle_gui.cpp @@ -717,7 +717,7 @@ int DrawVehiclePurchaseInfo(int x, int y, uint w, EngineID engine_number) const RailVehicleInfo *rvi = RailVehInfo(engine_number); uint capacity = GetEngineProperty(engine_number, 0x14, rvi->capacity); - bool refitable = (EngInfo(engine_number)->refit_mask != 0) && (capacity > 0); + refitable = (EngInfo(engine_number)->refit_mask != 0) && (capacity > 0); if (rvi->railveh_type == RAILVEH_WAGON) { y = DrawRailWagonPurchaseInfo(x, y, engine_number, rvi); |