diff 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
line wrap: on
line diff
--- a/Main.lua	Sun Dec 21 22:56:07 2014 -0500
+++ b/Main.lua	Mon Dec 22 00:06:12 2014 -0500
@@ -449,7 +449,7 @@
     if not item_link then
         return
     end
-    return tonumber(item_link:match("item:(%d+)"))
+    return tonumber(tostring(item_link):match("item:(%d+)"))
 end
 
 private.ItemLinkToID = ItemLinkToID