1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Fix GameStateSnapshots buffer overrun

This commit is contained in:
ZehMatt
2021-07-27 21:10:06 +03:00
parent ac08049472
commit 163fe3756d

View File

@@ -253,10 +253,16 @@ struct GameStateSnapshots final : public IGameStateSnapshots
COMPARE_FIELD(Peep, InteractionRideIndex);
COMPARE_FIELD(Peep, Id);
COMPARE_FIELD(Peep, PathCheckOptimisation);
COMPARE_FIELD(Peep, PathfindGoal);
COMPARE_FIELD(Peep, PathfindGoal.x);
COMPARE_FIELD(Peep, PathfindGoal.y);
COMPARE_FIELD(Peep, PathfindGoal.z);
COMPARE_FIELD(Peep, PathfindGoal.direction);
for (int i = 0; i < 4; i++)
{
COMPARE_FIELD(Peep, PathfindHistory[i]);
COMPARE_FIELD(Peep, PathfindHistory[i].x);
COMPARE_FIELD(Peep, PathfindHistory[i].y);
COMPARE_FIELD(Peep, PathfindHistory[i].z);
COMPARE_FIELD(Peep, PathfindHistory[i].direction);
}
COMPARE_FIELD(Peep, WalkingFrameNum);
}