diff --git a/src/object/WallObject.cpp b/src/object/WallObject.cpp index 5f960d2b75..11f19b4e77 100644 --- a/src/object/WallObject.cpp +++ b/src/object/WallObject.cpp @@ -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."); }