Mercurial > wow > wowdb-profiler
comparison Main.lua @ 404:f96f53dfb531
Fixed type mismatch in ItemLinkToID.
author | MMOSimca <MMOSimca@gmail.com> |
---|---|
date | Mon, 22 Dec 2014 00:06:12 -0500 |
parents | da1daa941777 |
children | d65875caafd6 |
comparison
equal
deleted
inserted
replaced
403:32eba41f0812 | 404:f96f53dfb531 |
---|---|
447 | 447 |
448 local function ItemLinkToID(item_link) | 448 local function ItemLinkToID(item_link) |
449 if not item_link then | 449 if not item_link then |
450 return | 450 return |
451 end | 451 end |
452 return tonumber(item_link:match("item:(%d+)")) | 452 return tonumber(tostring(item_link):match("item:(%d+)")) |
453 end | 453 end |
454 | 454 |
455 private.ItemLinkToID = ItemLinkToID | 455 private.ItemLinkToID = ItemLinkToID |
456 | 456 |
457 local function UnitTypeIsNPC(unit_type) | 457 local function UnitTypeIsNPC(unit_type) |