From f3c7e1cc819f1927353f7c236ee36c4965c05167 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Fri, 21 Jun 2019 12:38:11 -0400 Subject: [PATCH] Add comment to merged field --- src/party_menu.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/party_menu.c b/src/party_menu.c index 66069804b..f20bdff51 100755 --- a/src/party_menu.c +++ b/src/party_menu.c @@ -107,7 +107,11 @@ struct Struct203CEC4 u8 windowId[3]; u8 actions[8]; u8 listSize; - u16 palBuffer[0x100]; + // In vanilla Emerald, only the first 0xB0 hwords (0x160 bytes) are actually used. + // However, a full 0x100 hwords (0x200 bytes) are allocated. + // It is likely that the 0x160 value used below is a constant defined by + // bin2c, the utility used to encode the compressed palette data. + u16 palBuffer[BG_PLTT_SIZE / sizeof(u16)]; s16 data[16]; };