From 47b0c779de368eebc0c58529562fcecd721fa74d Mon Sep 17 00:00:00 2001 From: duncanspumpkin Date: Tue, 26 Feb 2019 10:02:51 +0000 Subject: [PATCH] Use correct function call. SMALL_SCENERY_FLAG_ANIMATED is for SmallScenery not for SmallSceneryElements --- src/openrct2/world/SmallScenery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/world/SmallScenery.cpp b/src/openrct2/world/SmallScenery.cpp index e8ecd11033..bbf080e9c1 100644 --- a/src/openrct2/world/SmallScenery.cpp +++ b/src/openrct2/world/SmallScenery.cpp @@ -463,7 +463,7 @@ void SmallSceneryElement::SetAge(uint8_t newAge) void SmallSceneryElement::IncreaseAge(int32_t x, int32_t y) { - if (flags & SMALL_SCENERY_FLAG_ANIMATED) + if (IsGhost()) return; if (age < 255)