From 2ee7c24282eb10ad7a0e50562ed0e152fe5630a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Wed, 5 Apr 2023 22:55:34 +0300 Subject: [PATCH] Use TileCoordsXY for the TileElementsView --- src/openrct2/world/TileElementsView.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/openrct2/world/TileElementsView.h b/src/openrct2/world/TileElementsView.h index 4347e686a1..cf391cd7df 100644 --- a/src/openrct2/world/TileElementsView.h +++ b/src/openrct2/world/TileElementsView.h @@ -41,7 +41,7 @@ namespace OpenRCT2 template class TileElementsView { - const CoordsXY _loc; + const TileCoordsXY _loc; public: struct Iterator @@ -104,6 +104,11 @@ namespace OpenRCT2 using iterator_category = std::forward_iterator_tag; }; + TileElementsView(const TileCoordsXY& loc) + : _loc(loc) + { + } + TileElementsView(const CoordsXY& loc) : _loc(loc) {