1
0
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:
Peter Froud
2024-03-16 22:54:56 -07:00
committed by Gymnasiast
parent 87ee06b7a4
commit 9e702d8b65

View File

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