From a0b77c4bffe78707e3c6a14f1ccadbdb391f9137 Mon Sep 17 00:00:00 2001 From: duncanspumpkin Date: Thu, 13 Jun 2019 19:33:37 +0100 Subject: [PATCH] return the value --- src/openrct2/actions/FootpathRemoveAction.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openrct2/actions/FootpathRemoveAction.hpp b/src/openrct2/actions/FootpathRemoveAction.hpp index eb29c3f215..7f7adb7858 100644 --- a/src/openrct2/actions/FootpathRemoveAction.hpp +++ b/src/openrct2/actions/FootpathRemoveAction.hpp @@ -156,7 +156,7 @@ private: while (!(tileElement++)->IsLastForTile()) { if (tileElement->GetType() == TILE_ELEMENT_TYPE_PATH) - return; + return result; else if (tileElement->GetType() != TILE_ELEMENT_TYPE_BANNER) continue; @@ -173,5 +173,6 @@ private: } tileElement--; } + return result; } };