forked from rosebudai/OpenRCT2-Web
Fix GameStateSnapshots buffer overrun
This commit is contained in:
1 file changed
+8
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user