1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 17:24:47 +01:00

Pass game state ref as parameter to game actions (#25065)

This commit is contained in:
Aaron van Geffen
2025-09-08 16:21:29 +02:00
committed by GitHub
parent 3e10c20792
commit 4446ff9f6f
227 changed files with 927 additions and 848 deletions

View File

@@ -1016,7 +1016,7 @@ static void FootpathFixOwnership(const CoordsXY& mapPos)
auto landSetRightsAction = GameActions::LandSetRightsAction(
mapPos, GameActions::LandSetRightSetting::SetOwnershipWithChecks, ownership);
landSetRightsAction.SetFlags(GAME_COMMAND_FLAG_NO_SPEND);
GameActions::Execute(&landSetRightsAction);
GameActions::Execute(&landSetRightsAction, getGameState());
}
static bool GetNextDirection(uint32_t edges, int32_t* direction)