From 2501df61a366940df8eb9b683419de2613d51a18 Mon Sep 17 00:00:00 2001 From: Ted John Date: Wed, 7 Jun 2017 00:06:28 +0100 Subject: [PATCH] Fix crash when building rides Game was attempting to log server action in non-network games. --- src/openrct2/ride/ride.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/openrct2/ride/ride.c b/src/openrct2/ride/ride.c index 8e5419cbd2..3cea23e55c 100644 --- a/src/openrct2/ride/ride.c +++ b/src/openrct2/ride/ride.c @@ -6175,8 +6175,10 @@ foundRideEntry: window_invalidate_by_class(WC_RIDE_LIST); // Log ride creation - int ebp = 1; - game_log_multiplayer_command(GAME_COMMAND_CREATE_RIDE, 0, 0, 0, &rideIndex, 0, &ebp); + if (network_get_mode() == NETWORK_MODE_SERVER) { + int ebp = 1; + game_log_multiplayer_command(GAME_COMMAND_CREATE_RIDE, 0, 0, 0, &rideIndex, 0, &ebp); + } gCommandExpenditureType = RCT_EXPENDITURE_TYPE_RIDE_CONSTRUCTION; gCommandPosition.x = 0x8000;