summaryrefslogtreecommitdiff
path: root/src/water_cmd.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-01-18 13:02:47 +0000
committersmatz <smatz@openttd.org>2008-01-18 13:02:47 +0000
commitdfb91c26ec2504bba971e5f9dfe827ebe751567d (patch)
tree6f71f95cb20d1693e9d00ae92731d8f772f8f6ac /src/water_cmd.cpp
parent04da1e1d456322d07e941ca19d35e9dc1020faf1 (diff)
downloadopenttd-dfb91c26ec2504bba971e5f9dfe827ebe751567d.tar.xz
(svn r11916) -Codechange: use enums from VehicleViewWindowWidgets instead of constants
-Fix: refit button widget was not correctly updated
Diffstat (limited to 'src/water_cmd.cpp')
-rw-r--r--src/water_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp
index 319362bea..30784aad5 100644
--- a/src/water_cmd.cpp
+++ b/src/water_cmd.cpp
@@ -770,7 +770,7 @@ static void FloodVehicle(Vehicle *v)
return;
}
- InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, STATUS_BAR);
+ InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, VVW_WIDGET_START_STOP_VEH);
InvalidateWindow(WC_VEHICLE_DEPOT, v->tile);
SetDParam(0, pass);