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
No known key found for this signature in database
GPG Key ID: 18CE582C71A225B0
1 changed files with 1 additions and 1 deletions

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