1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-10 09:32:29 +01:00

Fix #732. Sprites were moved to invalid coordinates when closing rides with no exits.

This commit is contained in:
Duncan Frost
2015-01-31 12:50:05 +00:00
parent 9367ec8d05
commit 25914fd8e2

View File

@@ -685,7 +685,7 @@ static void ride_remove_peeps(int rideIndex)
if (peep->next_var_29 & 4)
z += 8;
z++;
sprite_move(exitX, exitY, exitZ, (rct_sprite*)peep);
sprite_move(x, y, z, (rct_sprite*)peep);
} else {
sprite_move(exitX, exitY, exitZ, (rct_sprite*)peep);
peep->sprite_direction = exitDirection;