From ff1941eb8da6e612d825f3aa115a560a9ec970bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Tue, 7 Mar 2023 06:37:01 +0200 Subject: [PATCH] Fix #19586: Guests generated have potentially a large amount of money --- src/openrct2/entity/Guest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/entity/Guest.cpp b/src/openrct2/entity/Guest.cpp index 2819ffe99c..235a03673b 100644 --- a/src/openrct2/entity/Guest.cpp +++ b/src/openrct2/entity/Guest.cpp @@ -7130,7 +7130,7 @@ Guest* Guest::Generate(const CoordsXYZ& coords) peep->PeepId = gNextGuestNumber++; peep->Name = nullptr; - money64 cash = (ScenarioRand() & 0x3) * 100 - 100 + gGuestInitialCash; + money64 cash = (static_cast(ScenarioRand() & 0x3) * 100) - 100 + gGuestInitialCash; if (cash < 0) cash = 0;