Skip to content

Commit

Permalink
fix: Add toint64 to just keep up .net 48 compatibility for now
Browse files Browse the repository at this point in the history
  • Loading branch information
nt153133 committed Jun 29, 2024
1 parent dcb5e3a commit 068d5b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Managers/SnipeManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public static SnipeObject[] SnipeObjects
var first = Core.Memory.Read<IntPtr>(addr + Offsets.SnipeObjects);
var end = Core.Memory.Read<IntPtr>(addr + Offsets.SnipeObjects + 8);

var count = (end - first) / 0x48;
var count = (end.ToInt64() - first.ToInt64()) / 0x48;
Log.Information($"{count} snipe objects found");
return Core.Memory.ReadArray<SnipeObject>(first, (int)count);
}
Expand Down

0 comments on commit 068d5b3

Please sign in to comment.