summaryrefslogtreecommitdiff
path: root/viewport.c
diff options
context:
space:
mode:
Diffstat (limited to 'viewport.c')
-rw-r--r--viewport.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/viewport.c b/viewport.c
index d9c7afd62..1e879e51b 100644
--- a/viewport.c
+++ b/viewport.c
@@ -1686,7 +1686,10 @@ void HandleViewportClicked(const ViewPort *vp, int x, int y)
CheckClickOnLandscape(vp, x, y);
v = CheckClickOnVehicle(vp, x, y);
- if (v != NULL) _on_vehicle_click_proc[v->type - 0x10](v);
+ if (v != NULL) {
+ DEBUG(misc, 2) ("Vehicle %d at %p", v->index, v);
+ _on_vehicle_click_proc[v->type - 0x10](v);
+ }
}
Vehicle *CheckMouseOverVehicle(void)