1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 12:33:17 +01:00

Refactor explicit constructor usage in GuestSetNameAction

This commit is contained in:
ζeh Matt
2021-10-21 19:52:43 +03:00
parent fe3d3bdb3f
commit f8d9b0a2f9

View File

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