Fix GameStateSnapshots buffer overrun

This commit is contained in:
ZehMatt committed 2021-07-27 21:10:06 +03:00
1 parent ac08049472
commit 163fe3756d
1 file changed
+8 -2
+8 -2
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);
}