mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 11:33:03 +01:00
Refactor explicit constructor usage in SetParkEntranceFeeAction
This commit is contained in:
@@ -43,11 +43,11 @@ GameActions::Result::Ptr SetParkEntranceFeeAction::Query() const
|
||||
bool forceFreeEntry = !park_entry_price_unlocked();
|
||||
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)
|
||||
{
|
||||
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>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user