mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 03:23:15 +01:00
Refactor get banner
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user