fix wall price check

This commit is contained in:
Ted John 2016-07-09 23:03:09 +01:00
parent 50f3ba001e
commit f7757c7991
1 changed files with 1 additions and 1 deletions

View File

@ -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.");
}