1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

INVALID_PARAMETER for GHOST_ELEMENT_NOT_FOUND

Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
This commit is contained in:
Peter Froud
2024-01-29 02:15:53 -08:00
parent 704c779bf2
commit 01d9eeb266

View File

@@ -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)
{