From 8efc941fee3658ff798c6ac937106f60b9cea7f0 Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Sat, 12 Feb 2022 17:03:56 +0100 Subject: [PATCH] Fix #16227: Assertion hit in fix_duplicated_banners() Refactor error, introduced in https://github.com/OpenRCT2/OpenRCT2/commit/63a2e9d716b48235bdb71c6392462ee2b9f18504# --- src/openrct2/world/Banner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/world/Banner.cpp b/src/openrct2/world/Banner.cpp index 2f5ebfd711..e97a1702e2 100644 --- a/src/openrct2/world/Banner.cpp +++ b/src/openrct2/world/Banner.cpp @@ -285,7 +285,7 @@ void fix_duplicated_banners() log_error("Failed to create new banner."); continue; } - Guard::Assert(!activeBanners[index]); + Guard::Assert(!activeBanners[newBanner->id.ToUnderlying()]); // Copy over the original banner, but update the location const auto* oldBanner = GetBanner(bannerIndex);