From 6c97dd1dc710aeb670df69b1dcbc0b607995d7a6 Mon Sep 17 00:00:00 2001 From: matheusvb3 <98937378+matheusvb3@users.noreply.github.com> Date: Sun, 7 Dec 2025 13:05:44 -0300 Subject: [PATCH] Implement Gymnasiast's suggestion --- src/openrct2/entity/Peep.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openrct2/entity/Peep.cpp b/src/openrct2/entity/Peep.cpp index dbcf8b1770..68936d21a2 100644 --- a/src/openrct2/entity/Peep.cpp +++ b/src/openrct2/entity/Peep.cpp @@ -264,7 +264,8 @@ void Peep::UpdateWaitingAtCrossing() NextAnimationType = PeepAnimationType::watchRide; SwitchNextAnimationType(); - if (auto* guest = As(); guest != nullptr) + auto* guest = As(); + if (guest != nullptr) { if (guest->IsActionInterruptable()) {