changeset 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 0db3af42dd72
children 36a9cf4db65f
files genesis.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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) {