Fix crash when building rides

Game was attempting to log server action in non-network games.
This commit is contained in:
Ted John 2017-06-07 00:06:28 +01:00
parent 61d38511bc
commit 2501df61a3
1 changed files with 4 additions and 2 deletions

View File

@ -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;