mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Refactor explicit constructor usage in StaffSetColourAction
This commit is contained in:
@@ -41,7 +41,7 @@ GameActions::Result::Ptr StaffSetColourAction::Query() const
|
||||
auto staffType = static_cast<StaffType>(_staffType);
|
||||
if (staffType != StaffType::Handyman && staffType != StaffType::Mechanic && staffType != StaffType::Security)
|
||||
{
|
||||
return MakeResult(GameActions::Status::InvalidParameters, STR_NONE);
|
||||
return MakeResult(GameActions::Status::InvalidParameters, STR_NONE, STR_NONE);
|
||||
}
|
||||
return MakeResult();
|
||||
}
|
||||
@@ -51,7 +51,7 @@ GameActions::Result::Ptr StaffSetColourAction::Execute() const
|
||||
// Update global uniform colour property
|
||||
if (!staff_set_colour(static_cast<StaffType>(_staffType), _colour))
|
||||
{
|
||||
return MakeResult(GameActions::Status::InvalidParameters, STR_NONE);
|
||||
return MakeResult(GameActions::Status::InvalidParameters, STR_NONE, STR_NONE);
|
||||
}
|
||||
|
||||
// Update each staff member's uniform
|
||||
|
||||
Reference in New Issue
Block a user