Skip to content

Commit

Permalink
maybe fix last patch
Browse files Browse the repository at this point in the history
  • Loading branch information
GitMyCode committed Sep 26, 2022
1 parent 16076a5 commit 4e2ec51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion D.Core/MemoryReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public bool CurrentPlayerValid() {
mStatList = ReadAndValidate<StatList>(m_ProcessInfo, _mMemoryState.PlayerUnit.StatsList);

var playerName = Encoding.ASCII.GetString(WindowsHelper.Read<byte>(m_ProcessInfo.Handle, _mMemoryState.PlayerUnit.UnitData, 16)).TrimEnd((char)0);
var stats = WindowsHelper.Read<StatValue>(m_ProcessInfo.Handle, mStatList.Stats2.Array, (int)mStatList.Stats2.Size);
var stats = WindowsHelper.Read<StatValue>(m_ProcessInfo.Handle, mStatList.Stats.Array, (int)mStatList.Stats.Size);
var levelId = mLevel.LevelId;
if (levelId == Area.None)
throw new Exception("Invalid area");
Expand Down

0 comments on commit 4e2ec51

Please sign in to comment.