Rename closure variable to avoid shadowing a global/implicit var

This commit is contained in:
Parnic
2021-09-05 09:35:27 -05:00
parent da5498d1a2
commit e2ef8e6cb1

View File

@ -375,9 +375,9 @@ function Totems.prototype:CreateTotem(i, name)
self.graphicalOnLeave = function() GameTooltip:Hide() end
end
if not self.graphicalOnMouseUp then
self.graphicalOnMouseUp = function (self, mouseButton)
self.graphicalOnMouseUp = function (button, mouseButton)
if mouseButton == "RightButton" then
DestroyTotem(self.slot)
DestroyTotem(button.slot)
end
end
end