SB16 register_state(): we have to use a constant here.

This commit is contained in:
Volker Ruppert 2015-04-17 11:58:15 +00:00
parent 92f48fa92f
commit d416daf51b

View File

@ -513,7 +513,7 @@ void bx_sb16_c::register_state(void)
bx_list_c *emul = new bx_list_c(list, "emul");
new bx_shadow_num_c(emul, "remaps", &EMUL.remaps);
bx_list_c *remap = new bx_list_c(emul, "remaplist");
for (i=0; i<EMUL.remaps; i++) {
for (i=0; i<BX_SB16_MAX_REMAPS; i++) {
sprintf(name, "0x%02x", i);
ins_map = new bx_list_c(remap, name);
new bx_shadow_num_c(ins_map, "oldbankmsb", &EMUL.remaplist[i].oldbankmsb);