From f7757c79913db490a21a85c1950a15c0c6d31a9a Mon Sep 17 00:00:00 2001 From: Ted John Date: Sat, 9 Jul 2016 23:03:09 +0100 Subject: [PATCH] fix wall price check --- src/object/WallObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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."); }