From 6a08ca6a18afb406fe01336d829b5b729728c134 Mon Sep 17 00:00:00 2001 From: celerizer <33245078+celerizer@users.noreply.github.com> Date: Thu, 9 Nov 2017 19:57:10 -0600 Subject: [PATCH] Get up-to-date with master --- cheevos/var.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cheevos/var.c b/cheevos/var.c index 85b7297ade..605e5ee214 100644 --- a/cheevos/var.c +++ b/cheevos/var.c @@ -226,7 +226,7 @@ void cheevos_var_patch_addr(cheevos_var_t* var, cheevos_console_t console) unsigned addr = var->value; var->bank_id = (int)(desc - system->mmaps.descriptors); var->value = (unsigned)cheevos_var_reduce( - (addr - desc->core.start) & desc->disconnect_mask, + (var->value - desc->core.start) & desc->disconnect_mask, desc->core.disconnect); if (var->value >= desc->core.len)