mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-21 14:02:59 +01:00
fix wall price check
This commit is contained in:
@@ -48,7 +48,7 @@ void WallObject::ReadLegacy(IReadObjectContext * context, IStream * stream)
|
||||
GetImageTable()->Read(context, stream);
|
||||
|
||||
// Validate properties
|
||||
if (_legacyType.large_scenery.price <= 0)
|
||||
if (_legacyType.wall.price <= 0)
|
||||
{
|
||||
context->LogError(OBJECT_ERROR_INVALID_PROPERTY, "Price can not be free or negative.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user