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 cd42138d5..b6905ad33 100644
--- a/src/water_cmd.cpp
+++ b/src/water_cmd.cpp
@@ -229,8 +229,8 @@ int32 CmdBuildCanal(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
SET_EXPENSES_TYPE(EXPENSES_CONSTRUCTION);
- if (x < sx) intswap(x, sx);
- if (y < sy) intswap(y, sy);
+ if (x < sx) Swap(x, sx);
+ if (y < sy) Swap(y, sy);
size_x = (x - sx) + 1;
size_y = (y - sy) + 1;