mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #19586: Guests generated have potentially a large amount of money
This commit is contained in:
parent
30e6eb9f08
commit
ff1941eb8d
|
@ -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<money64>(ScenarioRand() & 0x3) * 100) - 100 + gGuestInitialCash;
|
||||
if (cash < 0)
|
||||
cash = 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue