mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-27 08:45:00 +01:00
* Close #12429: Refactor OBJECT_ERROR to use strong enum * Typo Fix in build.sh: Unknown
This commit is contained in:
@@ -57,7 +57,7 @@ void SmallSceneryObject::ReadLegacy(IReadObjectContext* context, OpenRCT2::IStre
|
||||
// Validate properties
|
||||
if (_legacyType.small_scenery.price <= 0)
|
||||
{
|
||||
context->LogError(OBJECT_ERROR_INVALID_PROPERTY, "Price can not be free or negative.");
|
||||
context->LogError(ObjectError::InvalidProperty, "Price can not be free or negative.");
|
||||
}
|
||||
if (_legacyType.small_scenery.removal_price <= 0)
|
||||
{
|
||||
@@ -65,7 +65,7 @@ void SmallSceneryObject::ReadLegacy(IReadObjectContext* context, OpenRCT2::IStre
|
||||
money16 reimbursement = _legacyType.small_scenery.removal_price;
|
||||
if (reimbursement > _legacyType.small_scenery.price)
|
||||
{
|
||||
context->LogError(OBJECT_ERROR_INVALID_PROPERTY, "Sell price can not be more than buy price.");
|
||||
context->LogError(ObjectError::InvalidProperty, "Sell price can not be more than buy price.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user