Skip to content

Commit

Permalink
Fix some offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
Qvin0000 committed Sep 6, 2019
1 parent e09f9a9 commit 062d647
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Core/PoEMemory/MemoryObjects/Entity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -443,13 +443,13 @@ private long ComponentLookup
{
if (_componentLookup != null)
return _componentLookup.Value;
return (long) (_componentLookup = M.Read<long>(Address, 0x40, 0x30));
return (long) (_componentLookup = M.Read<long>(Address+0x8, 0x40, 0x30));
}
}

public uint Id => (uint) (_id ??= M.Read<uint>(Address + 0x40));
public uint Id => (uint) (_id ??= M.Read<uint>(Address + 0x50));

public uint InventoryId => (uint) (_inventoryId ??= M.Read<uint>(Address + 0x58));
public uint InventoryId => (uint) (_inventoryId ??= M.Read<uint>(Address + 0x68));

//public bool IsValid => M.Read<int>(EntityOffsets.Head.MainObject+0x18,0) == 0x65004D;
public Dictionary<string, long> CacheComp => _cacheComponents2 ?? (_cacheComponents2 = GetComponents());
Expand Down Expand Up @@ -638,7 +638,7 @@ private Dictionary<string, long> GetComponents() {

private EntityType ParseType() {

if (EntityOffsets.Head.ComponentList.Size <= 0) return EntityType.Error;
// if (EntityOffsets.ComponentList <= 0) return EntityType.Error;

if (string.IsNullOrEmpty(Path)) return EntityType.Error;

Expand Down
2 changes: 1 addition & 1 deletion Core/Shared/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace Shared
{
public static class Constants
{
public static readonly Size2F MapIconsSize = new Size2F(14, 15);
public static readonly Size2F MapIconsSize = new Size2F(14, 16);
public static readonly Size2F MyMapIcons = new Size2F(7, 8);

public static readonly uint[] PlayerXpLevels =
Expand Down

0 comments on commit 062d647

Please sign in to comment.