Skip to content

Commit

Permalink
Merge pull request #59 from litianren001/patch-1
Browse files Browse the repository at this point in the history
GetItemSlot() bug fixed
  • Loading branch information
MNoya committed Nov 12, 2015
2 parents d25ea5a + 5fd64ae commit a6a6d43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/vscripts/statcollection/lib/utilities.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ end
-- String of item name, without the item_ prefix
function GetItemSlot(hero,slot)
local item = hero:GetItemInSlot(slot)
local itemName = ""

if item then
local itemName = string.gsub(item:GetAbilityName(),"item_","") or nil
itemName = string.gsub(item:GetAbilityName(),"item_","")
end

return itemName
Expand Down

0 comments on commit a6a6d43

Please sign in to comment.