fixed following patch (#50)
This commit is contained in:
@@ -45,7 +45,7 @@ func (gd *GameReader) GetRawPlayerUnits() RawPlayerUnits {
|
||||
|
||||
statsListExPtr := uintptr(gd.Process.ReadUInt(playerUnit+0x88, Uint64))
|
||||
baseStats := gd.getStatsList(statsListExPtr + 0x30)
|
||||
stats := gd.getStatsList(statsListExPtr + 0x88)
|
||||
stats := gd.getStatsList(statsListExPtr + 0xA8)
|
||||
states := gd.GetStates(statsListExPtr)
|
||||
playerMode := mode.PlayerMode(gd.Process.ReadUInt(playerUnit+0x0c, Uint32))
|
||||
|
||||
@@ -66,7 +66,7 @@ func (gd *GameReader) GetRawPlayerUnits() RawPlayerUnits {
|
||||
BaseStats: baseStats,
|
||||
Mode: playerMode,
|
||||
})
|
||||
playerUnit = uintptr(gd.Process.ReadUInt(playerUnit+0x150, Uint64))
|
||||
playerUnit = uintptr(gd.Process.ReadUInt(playerUnit+0x158, Uint64))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -148,7 +148,7 @@ func (gd *GameReader) GetStates(statsListExPtr uintptr) state.States {
|
||||
var states state.States
|
||||
for i := 0; i < 6; i++ {
|
||||
offset := i * 4
|
||||
stateByte := gd.Process.ReadUInt(statsListExPtr+0xAD0+uintptr(offset), Uint32)
|
||||
stateByte := gd.Process.ReadUInt(statsListExPtr+0xAF0+uintptr(offset), Uint32)
|
||||
|
||||
offset = (32 * i) - 1
|
||||
states = append(states, calculateStates(stateByte, uint(offset))...)
|
||||
|
||||
Reference in New Issue
Block a user