Refactor explicit constructor usage in RideSetPriceAction

This commit is contained in:
ζeh Matt committed 2021-10-27 04:32:07 +03:00
1 parent 5c964d7fe8
commit 72b59445ad
1 file changed
+4 -4
+4 -4
View File
@@ -55,14 +55,14 @@ GameActions::Result::Ptr RideSetPriceAction::Query() const
if (ride == nullptr)
{
log_warning("Invalid game command, ride_id = %u", uint32_t(_rideIndex));
return MakeResult(GameActions::Status::InvalidParameters, STR_NONE);
return MakeResult(GameActions::Status::InvalidParameters, STR_NONE, STR_NONE);
}
rct_ride_entry* rideEntry = get_ride_entry(ride->subtype);
if (rideEntry == nullptr)
{
log_warning("Invalid game command for ride %u", uint32_t(_rideIndex));
return MakeResult(GameActions::Status::InvalidParameters, STR_NONE);
return MakeResult(GameActions::Status::InvalidParameters, STR_NONE, STR_NONE);
}
return res;
@@ -77,14 +77,14 @@ GameActions::Result::Ptr RideSetPriceAction::Execute() const
if (ride == nullptr)
{
log_warning("Invalid game command, ride_id = %u", uint32_t(_rideIndex));
return MakeResult(GameActions::Status::InvalidParameters, STR_NONE);
return MakeResult(GameActions::Status::InvalidParameters, STR_NONE, STR_NONE);
}
rct_ride_entry* rideEntry = get_ride_entry(ride->subtype);
if (rideEntry == nullptr)
{
log_warning("Invalid game command for ride %u", uint32_t(_rideIndex));
return MakeResult(GameActions::Status::InvalidParameters, STR_NONE);
return MakeResult(GameActions::Status::InvalidParameters, STR_NONE, STR_NONE);
}
if (!ride->overall_view.IsNull())