early return
This commit is contained in:
@@ -153,12 +153,12 @@ func (gd *GameReader) getItemStats(statsListExPtr uintptr) (stat.Stats, stat.Sta
|
|||||||
for (0x40 & statListFlags & 0xFFFFDFFF) == 0 {
|
for (0x40 & statListFlags & 0xFFFFDFFF) == 0 {
|
||||||
attempts++
|
attempts++
|
||||||
if attempts == 10 {
|
if attempts == 10 {
|
||||||
break
|
return baseStats, fullStats
|
||||||
}
|
}
|
||||||
statListPrev = uintptr(gd.Process.ReadUInt(statListPrev+0x48, Uint64))
|
statListPrev = uintptr(gd.Process.ReadUInt(statListPrev+0x48, Uint64))
|
||||||
statListFlags = uintptr(gd.Process.ReadUInt(statListPrev+0x1C, Uint64))
|
statListFlags = uintptr(gd.Process.ReadUInt(statListPrev+0x1C, Uint64))
|
||||||
if statListPrev == 0 {
|
if statListPrev == 0 {
|
||||||
break
|
return baseStats, fullStats
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
modifierStats := gd.getStatsList(statListPrev + 0x88)
|
modifierStats := gd.getStatsList(statListPrev + 0x88)
|
||||||
|
|||||||
Reference in New Issue
Block a user