From d8a255562aadb63ecbf278a60cb60afea3e64e48 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:42:16 +0300 Subject: [PATCH] Refactor explicit constructor usage in WaterSetHeightAction --- src/openrct2/actions/WaterSetHeightAction.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/openrct2/actions/WaterSetHeightAction.cpp b/src/openrct2/actions/WaterSetHeightAction.cpp index 298df52762..844ed6dae5 100644 --- a/src/openrct2/actions/WaterSetHeightAction.cpp +++ b/src/openrct2/actions/WaterSetHeightAction.cpp @@ -68,7 +68,7 @@ GameActions::Result::Ptr WaterSetHeightAction::Query() const if (surfaceElement == nullptr) { log_error("Could not find surface element at: x %u, y %u", _coords.x, _coords.y); - return MakeResult(GameActions::Status::Unknown, STR_NONE); + return MakeResult(GameActions::Status::Unknown, STR_NONE, STR_NONE); } int32_t zHigh = surfaceElement->GetBaseZ(); @@ -90,7 +90,7 @@ GameActions::Result::Ptr WaterSetHeightAction::Query() const } if (surfaceElement->HasTrackThatNeedsWater()) { - return MakeResult(GameActions::Status::Disallowed, STR_NONE); + return MakeResult(GameActions::Status::Disallowed, STR_NONE, STR_NONE); } res->Cost = 250; @@ -113,7 +113,7 @@ GameActions::Result::Ptr WaterSetHeightAction::Execute() const if (surfaceElement == nullptr) { log_error("Could not find surface element at: x %u, y %u", _coords.x, _coords.y); - return std::make_unique(GameActions::Status::Unknown, STR_NONE); + return std::make_unique(GameActions::Status::Unknown, STR_NONE, STR_NONE); } if (_height > surfaceElement->base_height)