fix: use correct offset

This commit is contained in:
Anna 2021-01-22 14:27:44 -05:00
parent 90759ce719
commit e809151d85
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}