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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user