Skip to content

Commit

Permalink
Fixed stash type
Browse files Browse the repository at this point in the history
  • Loading branch information
Qvin0000 committed Sep 7, 2019
1 parent 062d647 commit b7c1c40
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Core/PoEMemory/MemoryObjects/Inventory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,16 @@ private InventoryType GetInvType() {
return _cacheInventoryType;
}

switch (AsObject<Element>().Parent.ChildCount)
var parentChildCount = AsObject<Element>().Parent.ChildCount;
switch (parentChildCount)
{
case 0x6f:
_cacheInventoryType = InventoryType.EssenceStash;
break;
case 0x38:
case 0x3c:
_cacheInventoryType = InventoryType.CurrencyStash;
break;
case 0x40:
case 0x4D:
_cacheInventoryType = InventoryType.FragmentStash;
break;
case 0x5:
Expand Down

0 comments on commit b7c1c40

Please sign in to comment.