From 70f7238d9669094caf0cb03964320742fae99168 Mon Sep 17 00:00:00 2001 From: Morilli <35152647+Morilli@users.noreply.github.com> Date: Tue, 3 Sep 2024 01:37:18 +0200 Subject: [PATCH] fix ChangeCount logic in MiniWatchDetails fixes another case of #4001 for ram search --- .../tools/RamSearchEngine/IMiniWatchDetails.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BizHawk.Client.Common/tools/RamSearchEngine/IMiniWatchDetails.cs b/src/BizHawk.Client.Common/tools/RamSearchEngine/IMiniWatchDetails.cs index 284ee172ee..a7fb122fea 100644 --- a/src/BizHawk.Client.Common/tools/RamSearchEngine/IMiniWatchDetails.cs +++ b/src/BizHawk.Client.Common/tools/RamSearchEngine/IMiniWatchDetails.cs @@ -96,7 +96,7 @@ namespace BizHawk.Client.Common.RamSearchEngine public void Update(PreviousType type, MemoryDomain domain, bool bigEndian) { var value = MiniWordWatch.GetUshort(Address, domain, bigEndian); - if (value != Previous) + if (value != _prevFrame) { ChangeCount++; } @@ -151,7 +151,7 @@ namespace BizHawk.Client.Common.RamSearchEngine public void Update(PreviousType type, MemoryDomain domain, bool bigEndian) { var value = MiniDWordWatch.GetUint(Address, domain, bigEndian); - if (value != Previous) + if (value != _prevFrame) { ChangeCount++; }