From 01d9eeb2669f50bd36ebd5c32399327c02339978 Mon Sep 17 00:00:00 2001 From: Peter Froud Date: Mon, 29 Jan 2024 02:15:53 -0800 Subject: [PATCH] `INVALID_PARAMETER` for `GHOST_ELEMENT_NOT_FOUND` Co-authored-by: Tulio Leao --- src/openrct2/actions/RideEntranceExitRemoveAction.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openrct2/actions/RideEntranceExitRemoveAction.cpp b/src/openrct2/actions/RideEntranceExitRemoveAction.cpp index 501d6ba3a2..2ae9f89b4a 100644 --- a/src/openrct2/actions/RideEntranceExitRemoveAction.cpp +++ b/src/openrct2/actions/RideEntranceExitRemoveAction.cpp @@ -132,7 +132,8 @@ GameActions::Result RideEntranceExitRemoveAction::Execute() const // If we are trying to remove a ghost and the element we found is real, return an error, but don't log a warning if (entranceElement != nullptr && isGhost && !(entranceElement->IsGhost())) { - return GameActions::Result(GameActions::Status::InvalidParameters, STR_ERR_GHOST_ELEMENT_NOT_FOUND, STR_NONE); + return GameActions::Result( + GameActions::Status::InvalidParameters, STR_ERR_INVALID_PARAMETER, STR_ERR_GHOST_ELEMENT_NOT_FOUND); } else if (entranceElement == nullptr) {