From 8d8820016c2bfa130c0e8893b2259a0db9d9faa0 Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Thu, 24 May 2018 13:13:51 +0200 Subject: [PATCH] Fix Testpaint --- test/testpaint/Compat.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/testpaint/Compat.cpp b/test/testpaint/Compat.cpp index 30faa83d12..d2d9877969 100644 --- a/test/testpaint/Compat.cpp +++ b/test/testpaint/Compat.cpp @@ -137,8 +137,9 @@ rct_sprite *get_sprite(size_t sprite_idx) { return &sprite_list[sprite_idx]; } -bool tile_element_is_last_for_tile(const rct_tile_element *element) { - return (element->flags & TILE_ELEMENT_FLAG_LAST_TILE) != 0; +bool rct_tile_element::IsLastForTile() const +{ + return (this->flags & TILE_ELEMENT_FLAG_LAST_TILE) != 0; } uint8 rct_tile_element::GetType() const