mirror of https://github.com/zeldaret/mm.git
Document OoB in z_message_nes (#1537)
This commit is contained in:
parent
5684c79312
commit
255c6b850a
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue