From d4ef3b0308502a418242d4281054bf9a920fc8e0 Mon Sep 17 00:00:00 2001 From: guiyomu-dev <22749537+guiyomu-dev@users.noreply.github.com> Date: Fri, 17 Oct 2025 10:04:30 +0200 Subject: [PATCH] fix offset for terror zones --- pkg/memory/terrorzones.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/memory/terrorzones.go b/pkg/memory/terrorzones.go index e42e980..f5bcf6d 100644 --- a/pkg/memory/terrorzones.go +++ b/pkg/memory/terrorzones.go @@ -5,10 +5,10 @@ import ( ) func (gd *GameReader) TerrorZones() (areas []area.ID) { - tz := gd.moduleBaseAddressPtr + tzOnline + tzPtr := uintptr(gd.ReadUInt(gd.moduleBaseAddressPtr+tzOnline, Uint64)) for i := 0; i < 8; i++ { - tzArea := gd.ReadUInt(tz+uintptr(i*Uint32), Uint32) + tzArea := gd.ReadUInt(tzPtr+uintptr(i*Uint32), Uint32) if tzArea != 0 { areas = append(areas, area.ID(tzArea)) }