Mercurial > wow > wowdb-profiler
changeset 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 | 2d2791de8a7c |
children | 037e67c37222 |
files | Main.lua |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
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