Refactor explicit constructor usage in LandLowerAction

This commit is contained in:
ζeh Matt 2021-10-21 19:55:45 +03:00
parent a9d9fd5f4f
commit 520053a9ff
No known key found for this signature in database
GPG Key ID: 18CE582C71A225B0
1 changed files with 2 additions and 4 deletions

View File

@ -134,10 +134,8 @@ GameActions::Result::Ptr LandLowerAction::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_LOWER_LAND_HERE;
return ownerShipResult;
return std::make_unique<GameActions::Result>(
GameActions::Status::Disallowed, STR_CANT_LOWER_LAND_HERE, STR_LAND_NOT_OWNED_BY_PARK);
}
// Force ride construction to recheck area