Refactor get banner

This commit is contained in:
Ted John committed 2019-07-25 22:21:19 +01:00
1 parent 85543bd1c8
commit 5c07c53faf
32 files changed
+359 -252

No files matched your search

@@ -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++;
}