Mercurial > repos > blastem
diff genesis.c @ 2090:00b6592cad42
Fix typo that messed up Mode 1 for carts with mappers
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 06 Feb 2022 22:21:02 -0800 |
parents | c716af3f8980 |
children | 9caebcfeac72 |
line wrap: on
line diff
--- a/genesis.c Sun Feb 06 13:51:49 2022 -0800 +++ b/genesis.c Sun Feb 06 22:21:02 2022 -0800 @@ -2151,7 +2151,7 @@ max_ptr_index = map[i].ptr_index; } } - cd->memptr_start_index + max_ptr_index + 1; + cd->memptr_start_index = max_ptr_index + 1; for (int i = info.map_chunks - 1; i < map_chunks - 1; i++) { if (map[i].flags & MMAP_PTR_IDX) {