From e809151d85952bb511063302795eafbb9a62b83a Mon Sep 17 00:00:00 2001 From: Anna Date: Fri, 22 Jan 2021 14:27:44 -0500 Subject: [PATCH] fix: use correct offset --- Peeping Tom/TargetWatcher.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Peeping Tom/TargetWatcher.cs b/Peeping Tom/TargetWatcher.cs index d70de4e..6ccda90 100644 --- a/Peeping Tom/TargetWatcher.cs +++ b/Peeping Tom/TargetWatcher.cs @@ -119,7 +119,7 @@ namespace PeepingTom { } private void HandleHistory(Targeter[] targeting) { - if (!this.Plugin.Config.KeepHistory || (!this.Plugin.Config.HistoryWhenClosed && !this.Plugin.Ui.Visible)) { + if (!this.Plugin.Config.KeepHistory || !this.Plugin.Config.HistoryWhenClosed && !this.Plugin.Ui.Visible) { return; } @@ -155,7 +155,7 @@ namespace PeepingTom { } private static byte GetStatus(Actor actor) { - var statusPtr = actor.Address + 0x1906; // updated 5.3 + var statusPtr = actor.Address + 0x1980; // updated 5.4 return Marshal.ReadByte(statusPtr); }