mirror of https://github.com/OpenRCT2/OpenRCT2.git
Refactor explicit constructor usage in GuestSetNameAction
This commit is contained in:
parent
fe3d3bdb3f
commit
f8d9b0a2f9
|
@ -83,7 +83,7 @@ GameActions::Result::Ptr GuestSetNameAction::Execute() const
|
|||
auto curName = guest->GetName();
|
||||
if (curName == _name)
|
||||
{
|
||||
return std::make_unique<GameActions::Result>(GameActions::Status::Ok, STR_NONE);
|
||||
return std::make_unique<GameActions::Result>();
|
||||
}
|
||||
|
||||
if (!guest->SetName(_name))
|
||||
|
|
Loading…
Reference in New Issue