diff options
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 8813c8939..0da7e16b6 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -970,7 +970,7 @@ void ViewportAddVehicles(DrawPixelInfo *dpi) Vehicle *CheckClickOnVehicle(const ViewPort *vp, int x, int y) { Vehicle *found = NULL, *v; - uint dist, best_dist = (uint)-1; + uint dist, best_dist = UINT_MAX; if ((uint)(x -= vp->left) >= (uint)vp->width || (uint)(y -= vp->top) >= (uint)vp->height) return NULL; |