From c248ac58ed007862cc2fd2ce36bca8b28047535f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Wed, 5 Apr 2023 23:23:19 +0300 Subject: [PATCH] Make passing of CoordsXY explicit --- src/openrct2/entity/Guest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/openrct2/entity/Guest.cpp b/src/openrct2/entity/Guest.cpp index 90a027cfca..979f6645b3 100644 --- a/src/openrct2/entity/Guest.cpp +++ b/src/openrct2/entity/Guest.cpp @@ -6381,7 +6381,7 @@ static bool PeepFindRideToLookAt(Peep* peep, uint8_t edge, RideId* rideToView, u uint16_t x = peep->NextLoc.x + CoordsDirectionDelta[edge].x; uint16_t y = peep->NextLoc.y + CoordsDirectionDelta[edge].y; - if (!MapIsLocationValid({ x, y })) + if (!MapIsLocationValid(CoordsXY{ x, y })) { return false; } @@ -6498,7 +6498,7 @@ static bool PeepFindRideToLookAt(Peep* peep, uint8_t edge, RideId* rideToView, u x += CoordsDirectionDelta[edge].x; y += CoordsDirectionDelta[edge].y; - if (!MapIsLocationValid({ x, y })) + if (!MapIsLocationValid(CoordsXY{ x, y })) { return false; } @@ -6615,7 +6615,7 @@ static bool PeepFindRideToLookAt(Peep* peep, uint8_t edge, RideId* rideToView, u x += CoordsDirectionDelta[edge].x; y += CoordsDirectionDelta[edge].y; - if (!MapIsLocationValid({ x, y })) + if (!MapIsLocationValid(CoordsXY{ x, y })) { return false; }