Skip to content

Commit

Permalink
Location: Fixed a leaked global variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravendwyr committed Jan 3, 2021
1 parent 7a44516 commit eb08055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/Location.lua
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function Location:OnDisable()
end


function Location:MediaRegistered(_, mediaType)
function Location:MediaRegistered(_, mediaType, mediaName)
if mediaType == "font" and mediaName == self.db.profile.font then
self:SetFont()
elseif mediaType == "background" and mediaName == self.db.profile.backgroundTexture then
Expand Down

0 comments on commit eb08055

Please sign in to comment.