diff options
author | PokeCodec <67983839+PokeCodec@users.noreply.github.com> | 2020-08-30 10:16:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-30 10:16:10 -0400 |
commit | 70e2b28c80c76d70ff44775589100c378f448cf0 (patch) | |
tree | 01c71ae04ea9bac2d324e197093de5459fcece05 /src | |
parent | bb30984be436bae6c9d998629e8bfedfdd7d1821 (diff) |
Change array_size to group types
Diffstat (limited to 'src')
-rw-r--r-- | src/wireless_communication_status_screen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wireless_communication_status_screen.c b/src/wireless_communication_status_screen.c index 2376d2b27..023253938 100644 --- a/src/wireless_communication_status_screen.c +++ b/src/wireless_communication_status_screen.c @@ -237,7 +237,7 @@ static void PrintHeaderTexts(void) FillWindowPixelBuffer(1, PIXEL_FILL(0)); FillWindowPixelBuffer(2, PIXEL_FILL(0)); WCSS_AddTextPrinterParameterized(0, 1, sHeaderTexts[0], GetStringCenterAlignXOffset(1, sHeaderTexts[0], 0xC0), 6, COLORMODE_GREEN); - for (i = 0; i < (int)ARRAY_COUNT(*sHeaderTexts) - 1; i++) //UB: sizeOf returns the size of the pointer, not the array itself in this case. + for (i = 0; i < NUM_GROUPTYPES; i++) { WCSS_AddTextPrinterParameterized(1, 1, sHeaderTexts[i + 1], 0, 30 * i + 8, COLORMODE_WHITE_LGRAY); } |