mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 22:34:33 +01:00
Refactor explicit constructor usage in LandRaiseAction
This commit is contained in:
@@ -130,10 +130,8 @@ GameActions::Result::Ptr LandRaiseAction::QueryExecute(bool isExecuting) const
|
||||
|
||||
if (!withinOwnership)
|
||||
{
|
||||
GameActions::Result::Ptr ownerShipResult = std::make_unique<GameActions::Result>(
|
||||
GameActions::Status::Disallowed, STR_LAND_NOT_OWNED_BY_PARK);
|
||||
ownerShipResult->ErrorTitle = STR_CANT_RAISE_LAND_HERE;
|
||||
return ownerShipResult;
|
||||
return std::make_unique<GameActions::Result>(
|
||||
GameActions::Status::Disallowed, STR_CANT_RAISE_LAND_HERE, STR_LAND_NOT_OWNED_BY_PARK);
|
||||
}
|
||||
|
||||
// Force ride construction to recheck area
|
||||
|
||||
Reference in New Issue
Block a user