This commit is contained in:
Héctor Giménez
2023-03-13 15:44:22 +09:00
parent 09886b92ac
commit c0459ce99f

View File

@@ -116,7 +116,7 @@ func (gd *GameReader) getItemStats(statCount uint, statPtr uintptr, statExCount
} }
} }
if statExCount < 20 && statCount > 0 { if statExCount < 20 && statExCount > 0 {
statBuffer := gd.Process.ReadBytesFromMemory(statExPtr, statExCount*10) statBuffer := gd.Process.ReadBytesFromMemory(statExPtr, statExCount*10)
for i := 0; i < int(statExCount); i++ { for i := 0; i < int(statExCount); i++ {
offset := uint(i * 8) offset := uint(i * 8)