From aebef7b72136fb4612f43091595e50e85108d85e Mon Sep 17 00:00:00 2001 From: CarlPoppa Date: Fri, 17 Oct 2025 13:20:18 +0100 Subject: [PATCH] Replace hardcoded TZ offset with AOB scan --- pkg/memory/terrorzones.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/memory/terrorzones.go b/pkg/memory/terrorzones.go index f5bcf6d..a72ba9b 100644 --- a/pkg/memory/terrorzones.go +++ b/pkg/memory/terrorzones.go @@ -5,7 +5,7 @@ import ( ) func (gd *GameReader) TerrorZones() (areas []area.ID) { - tzPtr := uintptr(gd.ReadUInt(gd.moduleBaseAddressPtr+tzOnline, Uint64)) + tzPtr := uintptr(gd.ReadUInt(gd.moduleBaseAddressPtr+gd.offset.TZ, Uint64)) for i := 0; i < 8; i++ { tzArea := gd.ReadUInt(tzPtr+uintptr(i*Uint32), Uint32)