mirror of https://github.com/OpenRCT2/OpenRCT2.git
Missed an instance of `ride == nullptr`
This commit is contained in:
parent
87ee06b7a4
commit
9e702d8b65
|
@ -48,8 +48,9 @@ GameActions::Result RideSetSettingAction::Query() const
|
||||||
auto ride = GetRide(_rideIndex);
|
auto ride = GetRide(_rideIndex);
|
||||||
if (ride == nullptr)
|
if (ride == nullptr)
|
||||||
{
|
{
|
||||||
LOG_ERROR("Invalid ride: #%u.", _rideIndex.ToUnderlying());
|
LOG_ERROR("Ride not found for rideIndex %u.", _rideIndex.ToUnderlying());
|
||||||
return GameActions::Result(GameActions::Status::InvalidParameters, STR_CANT_CHANGE_OPERATING_MODE, STR_NONE);
|
return GameActions::Result(
|
||||||
|
GameActions::Status::InvalidParameters, STR_CANT_CHANGE_OPERATING_MODE, STR_ERR_RIDE_NOT_FOUND);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (_setting)
|
switch (_setting)
|
||||||
|
|
Loading…
Reference in New Issue