1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 05:53:02 +01:00

Refactor explicit constructor usage in SmallSceneryRemoveAction

This commit is contained in:
ζeh Matt
2021-10-21 20:26:21 +03:00
parent d99c6641e7
commit 76114bca2f

View File

@@ -111,7 +111,7 @@ GameActions::Result::Ptr SmallSceneryRemoveAction::Execute() const
auto* entry = get_small_scenery_entry(_sceneryType);
if (entry == nullptr)
{
return MakeResult(GameActions::Status::InvalidParameters, STR_INVALID_SELECTION_OF_OBJECTS);
return MakeResult(GameActions::Status::InvalidParameters, STR_CANT_REMOVE_THIS, STR_INVALID_SELECTION_OF_OBJECTS);
}
res->Cost = entry->removal_price * 10;