Mercurial > wow > wowdb-profiler
diff Main.lua @ 201:df1cdcd46fe1 1.0.31
Only record an item's suffix_id and unique_id of the link's suffix_id is non-zero.
author | James D. Callahan III <jcallahan@curse.com> |
---|---|
date | Wed, 05 Dec 2012 08:44:57 -0600 |
parents | 7fdf97c18c86 |
children | 83fdf52f0310 |
line wrap: on
line diff
--- a/Main.lua Tue Dec 04 15:26:40 2012 -0600 +++ b/Main.lua Wed Dec 05 08:44:57 2012 -0600 @@ -815,9 +815,12 @@ if item_string then local _, _, _, _, _, _, _, suffix_id, unique_id, _, _, upgrade_id = (":"):split(item_string) + suffix_id = tonumber(suffix_id) - item.suffix_id = suffix_id - item.unique_id = bit.band(unique_id, 0xFFFF) + if suffix_id and suffix_id ~= 0 then + item.suffix_id = suffix_id + item.unique_id = bit.band(unique_id, 0xFFFF) + end if upgrade_id then item.upgrade_id = upgrade_id