# HG changeset patch # User Michael Pavone # Date 1644214862 28800 # Node ID 00b6592cad4251c786a9ecfa08f426a7a49a4626 # Parent 0db3af42dd72666de04e82b9de9af7074a64c47b Fix typo that messed up Mode 1 for carts with mappers diff -r 0db3af42dd72 -r 00b6592cad42 genesis.c --- 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) {