Skip to content

Commit

Permalink
Fixed legacy highguid to object type conversion
Browse files Browse the repository at this point in the history
Closes #189
  • Loading branch information
Shauren committed Nov 13, 2015
1 parent d6a89d8 commit 8235b52
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions WowPacketParser/Misc/WowGuid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,11 @@ public HighGuidTypeLegacy GetHighGuidTypeLegacy()
return HighGuidTypeLegacy.None;

var highGUID = (HighGuidTypeLegacy)((Low & 0xF0F0000000000000) >> 52);

switch ((int)highGUID)
switch ((int)highGUID & 0xF00)
{
case 0x0:
case 0x8:
return HighGuidTypeLegacy.Player;
case 0x408:
case 0x400:
return HighGuidTypeLegacy.Item;
default:
return highGUID;
Expand Down

0 comments on commit 8235b52

Please sign in to comment.