1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-25 07:44:38 +01:00

Refactor explicit constructor usage in GuestSetFlagsAction

This commit is contained in:
ζeh Matt
2021-10-21 19:51:24 +03:00
parent fcce046a48
commit fe3d3bdb3f

View File

@@ -43,7 +43,7 @@ GameActions::Result::Ptr GuestSetFlagsAction::Query() const
if (peep == nullptr)
{
log_error("Used invalid sprite index for peep: %u", static_cast<uint32_t>(_peepId));
return MakeResult(GameActions::Status::InvalidParameters, STR_CANT_CHANGE_THIS);
return MakeResult(GameActions::Status::InvalidParameters, STR_CANT_CHANGE_THIS, STR_NONE);
}
return std::make_unique<GameActions::Result>();
}
@@ -54,7 +54,7 @@ GameActions::Result::Ptr GuestSetFlagsAction::Execute() const
if (peep == nullptr)
{
log_error("Used invalid sprite index for peep: %u", static_cast<uint32_t>(_peepId));
return MakeResult(GameActions::Status::InvalidParameters, STR_CANT_CHANGE_THIS);
return MakeResult(GameActions::Status::InvalidParameters, STR_CANT_CHANGE_THIS, STR_NONE);
}
peep->PeepFlags = _newFlags;