summaryrefslogtreecommitdiff
path: root/roadveh_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'roadveh_gui.c')
-rw-r--r--roadveh_gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/roadveh_gui.c b/roadveh_gui.c
index 6d58567e3..c4d8017c1 100644
--- a/roadveh_gui.c
+++ b/roadveh_gui.c
@@ -670,7 +670,7 @@ static void HandleCloneVehClick(const Vehicle* v, const Window* w)
ResetObjectToPlace();
}
-static void ClonePlaceObj(TileIndex tile, const Window* w)
+static void ClonePlaceObj(const Window* w)
{
const Vehicle* v = CheckMouseOverVehicle();
@@ -715,7 +715,7 @@ static void RoadDepotWndProc(Window *w, WindowEvent *e)
} break;
case WE_PLACE_OBJ: {
- ClonePlaceObj(e->place.tile, w);
+ ClonePlaceObj(w);
} break;
case WE_ABORT_PLACE_OBJ: {