From 50541a2cc70a698af77a5ec4bf65662a91220114 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Mon, 6 Apr 2020 23:08:23 +0200 Subject: [PATCH] Fix GameStateSnapshot comparators --- src/openrct2/GameStateSnapshots.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/openrct2/GameStateSnapshots.cpp b/src/openrct2/GameStateSnapshots.cpp index 883b0d1139..616ab1eda9 100644 --- a/src/openrct2/GameStateSnapshots.cpp +++ b/src/openrct2/GameStateSnapshots.cpp @@ -233,7 +233,7 @@ struct GameStateSnapshots : public IGameStateSnapshots COMPARE_FIELD(Peep, nausea_tolerance); COMPARE_FIELD(Peep, window_invalidate_flags); COMPARE_FIELD(Peep, paid_on_drink); - for (int i = 0; i < PEEP_MAX_THOUGHTS; i++) + for (int i = 0; i < 16; i++) { COMPARE_FIELD(Peep, ride_types_been_on[i]); } @@ -379,6 +379,8 @@ struct GameStateSnapshots : public IGameStateSnapshots COMPARE_FIELD(Vehicle, colours_extended); COMPARE_FIELD(Vehicle, seat_rotation); COMPARE_FIELD(Vehicle, target_seat_rotation); + COMPARE_FIELD(Vehicle, BoatLocation.x); + COMPARE_FIELD(Vehicle, BoatLocation.y); } void CompareSpriteDataLitter(const Litter& spriteBase, const Litter& spriteCmp, GameStateSpriteChange_t& changeData) const