summaryrefslogtreecommitdiff
path: root/src
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
commit7394b9d030a7841c4bf9ee5b77b3b33af8cbe002 (patch)
tree3dd31eb5e9bd46c000105c13091015f6f93ed00b /src
parent13781ec11b77ec4c358b5e99385731122ef0aaf2 (diff)
downloadopenttd-7394b9d030a7841c4bf9ee5b77b3b33af8cbe002.tar.xz
(svn r12164) -Fix (r12137, FS#1775]: Variable scope bug crept in
Diffstat (limited to 'src')
-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);