From 37bc7238e62f6b4345d1933ff06ee929ce12be9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Fri, 20 Oct 2023 14:27:02 +0300 Subject: [PATCH] Remove unnecessary scope --- src/openrct2/Game.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/openrct2/Game.cpp b/src/openrct2/Game.cpp index cb064d33f7..bffd858984 100644 --- a/src/openrct2/Game.cpp +++ b/src/openrct2/Game.cpp @@ -364,13 +364,12 @@ static void FixGuestCount() { // Recalculates peep count after loading a save to fix corrupted files uint32_t guestCount = 0; + + for (auto guest : EntityList()) { - for (auto guest : EntityList()) + if (!guest->OutsideOfPark) { - if (!guest->OutsideOfPark) - { - guestCount++; - } + guestCount++; } }