Refactor explicit constructor usage in WaterRaiseAction

This commit is contained in:
ζeh Matt committed 2021-10-27 04:32:06 +03:00
1 parent 84acdba0f0
commit a4e5a92c54
1 file changed
+2 -4
+2 -4
View File
@@ -120,10 +120,8 @@ GameActions::Result::Ptr WaterRaiseAction::QueryExecute(bool isExecuting) const
if (!withinOwnership)
{
GameActions::Result::Ptr ownerShipResult = std::make_unique<GameActions::Result>(
GameActions::Status::Disallowed, STR_LAND_NOT_OWNED_BY_PARK);
ownerShipResult->ErrorTitle = STR_CANT_RAISE_WATER_LEVEL_HERE;
return ownerShipResult;
return std::make_unique<GameActions::Result>(
GameActions::Status::Disallowed, STR_CANT_RAISE_WATER_LEVEL_HERE, STR_LAND_NOT_OWNED_BY_PARK);
}
if (isExecuting && hasChanged)