mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix crash when building rides
Game was attempting to log server action in non-network games.
This commit is contained in:
parent
61d38511bc
commit
2501df61a3
|
@ -6175,8 +6175,10 @@ foundRideEntry:
|
||||||
window_invalidate_by_class(WC_RIDE_LIST);
|
window_invalidate_by_class(WC_RIDE_LIST);
|
||||||
|
|
||||||
// Log ride creation
|
// Log ride creation
|
||||||
int ebp = 1;
|
if (network_get_mode() == NETWORK_MODE_SERVER) {
|
||||||
game_log_multiplayer_command(GAME_COMMAND_CREATE_RIDE, 0, 0, 0, &rideIndex, 0, &ebp);
|
int ebp = 1;
|
||||||
|
game_log_multiplayer_command(GAME_COMMAND_CREATE_RIDE, 0, 0, 0, &rideIndex, 0, &ebp);
|
||||||
|
}
|
||||||
|
|
||||||
gCommandExpenditureType = RCT_EXPENDITURE_TYPE_RIDE_CONSTRUCTION;
|
gCommandExpenditureType = RCT_EXPENDITURE_TYPE_RIDE_CONSTRUCTION;
|
||||||
gCommandPosition.x = 0x8000;
|
gCommandPosition.x = 0x8000;
|
||||||
|
|
Loading…
Reference in New Issue