1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 06:44:38 +01:00

Fix #16227: Assertion hit in fix_duplicated_banners()

Refactor error, introduced in 63a2e9d716#
This commit is contained in:
Michael Steenbeek
2022-02-12 17:03:56 +01:00
committed by GitHub
parent 2e37f12365
commit 8efc941fee

View File

@@ -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);