1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 14:24:33 +01:00

Refactor explicit constructor usage in WaterLowerAction

This commit is contained in:
ζeh Matt
2021-10-21 20:40:50 +03:00
parent 2702b2641f
commit 84acdba0f0

View File

@@ -113,10 +113,9 @@ GameActions::Result::Ptr WaterLowerAction::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_WATER_LEVEL_HERE;
return ownerShipResult;
return std::make_unique<GameActions::Result>(
GameActions::Status::Disallowed, STR_CANT_LOWER_WATER_LEVEL_HERE, STR_LAND_NOT_OWNED_BY_PARK);
;
}
if (isExecuting && hasChanged)