Mercurial > wow > wowdb-profiler
diff Main.lua @ 66:e84a1e960bed
Change method of extracting ID from GUID
author | James D. Callahan III <jcallahan@curse.com> |
---|---|
date | Mon, 30 Jul 2012 09:50:44 -0500 |
parents | 3f7a12a9163c |
children | 8cbb3d7b8522 |
line wrap: on
line diff
--- a/Main.lua Thu Jul 26 16:36:29 2012 -0500 +++ b/Main.lua Mon Jul 30 09:50:44 2012 -0500 @@ -223,9 +223,8 @@ local unit_type = _G.bit.band(tonumber(guid:sub(1, 5)), UNIT_TYPE_BITMASK) if unit_type ~= types.PLAYER and unit_type ~= types.PET then - return unit_type, tonumber(guid:sub(-12, -9), 16) + return unit_type, tonumber(guid:sub(6, 10), 16) end - return unit_type end end -- do-block