summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-02-16 23:09:33 +0000
committerpeter1138 <peter1138@openttd.org>2008-02-16 23:09:33 +0000
commit89e0b522e272a9e61132f5407506ee5af4eb3e0c (patch)
tree3dd31eb5e9bd46c000105c13091015f6f93ed00b
parent1aa52374615495f787df9c6331734a13f4a42e0c (diff)
downloadopenttd-89e0b522e272a9e61132f5407506ee5af4eb3e0c.tar.xz
(svn r12164) -Fix (r12137, FS#1775]: Variable scope bug crept in
-rw-r--r--src/build_vehicle_gui.cpp2
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);