From b3bae9429c5d4a1db7ee847f1cd02fd834558d28 Mon Sep 17 00:00:00 2001 From: Duncan Date: Sat, 22 Jan 2022 08:22:46 +0000 Subject: [PATCH] Fix #16427. Actually copy banners when using tile inspector (#16450) --- distribution/changelog.txt | 1 + src/openrct2/world/TileInspector.cpp | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 1fcebe3880..6ce0704664 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -36,6 +36,7 @@ - Fix: [#16188] Medium-size banked turns on the Twister and Vertical Roller Coaster have incorrect support placement (partly original bug). - Fix: [#16327] Crash on malformed network packet. - Fix: [#16449] [Plugin] Viewport doesn't hide when switching tabs. +- Fix: [#16450] Banner style not copied when using tile inspector. - Fix: [objects#165] Glitch when Bengal Tiger Cars go through a corner. 0.3.5.1 (2021-11-21) diff --git a/src/openrct2/world/TileInspector.cpp b/src/openrct2/world/TileInspector.cpp index 018488b6ca..7c8a651568 100644 --- a/src/openrct2/world/TileInspector.cpp +++ b/src/openrct2/world/TileInspector.cpp @@ -340,7 +340,9 @@ namespace OpenRCT2::TileInspector log_error("No free banners available"); return GameActions::Result(GameActions::Status::Unknown, STR_TOO_MANY_BANNERS_IN_GAME, STR_NONE); } - + // Copy the banners style + *newBanner = *GetBanner(bannerIndex); + // Reset the location to the paste location newBanner->position = tileLoc; // Use the new banner index