mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-19 21:13:05 +01:00
Missed an instance of ride == nullptr
This commit is contained in:
@@ -48,8 +48,9 @@ GameActions::Result RideSetSettingAction::Query() const
|
||||
auto ride = GetRide(_rideIndex);
|
||||
if (ride == nullptr)
|
||||
{
|
||||
LOG_ERROR("Invalid ride: #%u.", _rideIndex.ToUnderlying());
|
||||
return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_CHANGE_OPERATING_MODE, STR_NONE);
|
||||
LOG_ERROR("Ride not found for rideIndex %u.", _rideIndex.ToUnderlying());
|
||||
return GameActions::Result(
|
||||
GameActions::Status::InvalidParameters, STR_CANT_CHANGE_OPERATING_MODE, STR_ERR_RIDE_NOT_FOUND);
|
||||
}
|
||||
|
||||
switch (_setting)
|
||||
|
||||
Reference in New Issue
Block a user