forked from rosebudai/OpenRCT2-Web
Refactor explicit constructor usage in SmallSceneryRemoveAction
This commit is contained in:
1 file changed
+1
-1
@@ -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