Fix wrong tile for old canal ownership check in CmdBuildCanal

pull/510/head
Jonathan G Rennison 1 year ago
parent d0299e4c16
commit 639b24911d

@ -513,7 +513,7 @@ CommandCost CmdBuildCanal(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
if (flags & DC_EXEC) {
if (IsTileType(current_tile, MP_WATER) && IsCanal(current_tile)) {
Owner owner = GetTileOwner(tile);
Owner owner = GetTileOwner(current_tile);
if (Company::IsValidID(owner)) {
Company::Get(owner)->infrastructure.water--;
DirtyCompanyInfrastructureWindows(owner);

Loading…
Cancel
Save