Refactor explicit constructor usage in SetParkEntranceFeeAction

This commit is contained in:
ζeh Matt 2021-10-21 20:21:58 +03:00
parent 8f9ad4743d
commit 18eaada85b
No known key found for this signature in database
GPG Key ID: 18CE582C71A225B0
1 changed files with 2 additions and 2 deletions

View File

@ -43,11 +43,11 @@ GameActions::Result::Ptr SetParkEntranceFeeAction::Query() const
bool forceFreeEntry = !park_entry_price_unlocked(); bool forceFreeEntry = !park_entry_price_unlocked();
if (noMoney || forceFreeEntry) if (noMoney || forceFreeEntry)
{ {
return std::make_unique<GameActions::Result>(GameActions::Status::Disallowed, STR_NONE); return std::make_unique<GameActions::Result>(GameActions::Status::Disallowed, STR_NONE, STR_NONE);
} }
if (_fee < MONEY_FREE || _fee > MAX_ENTRANCE_FEE) if (_fee < MONEY_FREE || _fee > MAX_ENTRANCE_FEE)
{ {
return std::make_unique<GameActions::Result>(GameActions::Status::InvalidParameters, STR_NONE); return std::make_unique<GameActions::Result>(GameActions::Status::InvalidParameters, STR_NONE, STR_NONE);
} }
return std::make_unique<GameActions::Result>(); return std::make_unique<GameActions::Result>();
} }