(MESS) gb.c: Prevent array out of bound access when logging SGB packet information (nw)

This commit is contained in:
Wilbert Pol 2013-02-09 11:07:40 +00:00
parent 94c3fa3082
commit fcb030d94d

View File

@ -359,7 +359,7 @@ WRITE8_MEMBER(gb_state::gb_io2_w)
}
#ifdef MAME_DEBUG
static const char *const sgbcmds[26] =
static const char *const sgbcmds[32] =
{
"PAL01 ",
"PAL23 ",
@ -387,6 +387,12 @@ static const char *const sgbcmds[26] =
"MASK_EN ",
"OBJ_TRN ",
"????????",
"????????",
"????????",
"????????",
"????????",
"????????",
"????????"
};
#endif