mirror of
https://github.com/zeldaret/mm.git
synced 2026-05-23 06:54:14 -04:00
Document OoB in z_message_nes (#1537)
This commit is contained in:
@@ -1626,6 +1626,7 @@ void Message_DecodeNES(PlayState* play) {
|
||||
Message_LoadPluralRupeesNES(play, &decodedBufPos, &charTexIndex, &spA4);
|
||||
} else if (curChar == MESSAGE_BOMBER_CODE) {
|
||||
for (i = 0; i < 5; i++) {
|
||||
//! @bug OoB read & write for i == 4, digits array is only 4 elements
|
||||
digits[i] = gSaveContext.save.saveInfo.bomberCode[i];
|
||||
Font_LoadCharNES(play, digits[i] + '0', charTexIndex);
|
||||
charTexIndex += FONT_CHAR_TEX_SIZE;
|
||||
|
||||
Reference in New Issue
Block a user