From 75263034e580ec118179cefc51d27e731f74cbe8 Mon Sep 17 00:00:00 2001 From: Sam Horn Date: Sat, 10 Oct 2015 23:15:56 +1000 Subject: [PATCH] Use GET_PEEP macro --- src/peep/peep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/peep/peep.c b/src/peep/peep.c index e87f4932b4..ac3f3270b1 100644 --- a/src/peep/peep.c +++ b/src/peep/peep.c @@ -7934,7 +7934,7 @@ static bool peep_should_go_on_ride(rct_peep *peep, int rideIndex, int entranceNu else { // Check if there's room in the queue for the peep to enter. if (ride->first_peep_in_queue[entranceNum] != 0xFFFF) { - rct_peep *firstPeepInQueue = &(g_sprite_list[ride->first_peep_in_queue[entranceNum]].peep); + rct_peep *firstPeepInQueue = GET_PEEP(ride->first_peep_in_queue[entranceNum]); if (abs(firstPeepInQueue->z - peep->z) <= 6) { int dx = abs(firstPeepInQueue->x - peep->x); int dy = abs(firstPeepInQueue->y - peep->y);