summaryrefslogtreecommitdiff
path: root/src/water_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/water_cmd.cpp')
-rw-r--r--src/water_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp
index e5e159b56..7d213cf29 100644
--- a/src/water_cmd.cpp
+++ b/src/water_cmd.cpp
@@ -875,7 +875,7 @@ static Vehicle *FloodVehicleProc(Vehicle *v, void *data)
case VEH_TRAIN:
case VEH_ROAD: {
- byte z = *(byte*)data;
+ int z = *(int*)data;
if (v->z_pos > z) break;
FloodVehicle(v->First());
break;
@@ -892,7 +892,7 @@ static Vehicle *FloodVehicleProc(Vehicle *v, void *data)
*/
static void FloodVehicles(TileIndex tile)
{
- byte z = 0;
+ int z = 0;
if (IsAirportTile(tile)) {
const Station *st = Station::GetByTile(tile);