From cce3609c75a48da16e36ae7eb3f27cc3621e182c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Thu, 21 Oct 2021 20:27:33 +0300 Subject: [PATCH] Refactor explicit constructor usage in LandRaiseAction --- src/openrct2/actions/LandRaiseAction.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/openrct2/actions/LandRaiseAction.cpp b/src/openrct2/actions/LandRaiseAction.cpp index d7a971c7bf..5a39145123 100644 --- a/src/openrct2/actions/LandRaiseAction.cpp +++ b/src/openrct2/actions/LandRaiseAction.cpp @@ -130,10 +130,8 @@ GameActions::Result::Ptr LandRaiseAction::QueryExecute(bool isExecuting) const if (!withinOwnership) { - GameActions::Result::Ptr ownerShipResult = std::make_unique( - GameActions::Status::Disallowed, STR_LAND_NOT_OWNED_BY_PARK); - ownerShipResult->ErrorTitle = STR_CANT_RAISE_LAND_HERE; - return ownerShipResult; + return std::make_unique( + GameActions::Status::Disallowed, STR_CANT_RAISE_LAND_HERE, STR_LAND_NOT_OWNED_BY_PARK); } // Force ride construction to recheck area