1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 03:23:15 +01:00

Refactor get banner

This commit is contained in:
Ted John
2019-07-25 17:51:22 +01:00
parent 85543bd1c8
commit 5c07c53faf
32 changed files with 359 additions and 252 deletions

View File

@@ -1262,7 +1262,8 @@ static int32_t cc_show_limits(InteractiveConsole& console, [[maybe_unused]] cons
int32_t bannerCount = 0;
for (BannerIndex i = 0; i < MAX_BANNERS; ++i)
{
if (gBanners[i].type != BANNER_NULL)
auto banner = get_banner(i);
if (banner->type != BANNER_NULL)
{
bannerCount++;
}