Skip to content

Commit

Permalink
Fixed coords error in instance.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wetxius committed Jul 8, 2019
1 parent 306730d commit 57e60d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ShestakUI/Libs/LiteStats/LiteStats.lua
Expand Up @@ -106,7 +106,7 @@ if modules and ((coords and coords.enabled) or (location and location.enabled))
end
end)

function Coords() return format(coords and coords.fmt or "%d, %d", coordX * 100, coordY * 100) end
function Coords() return format(coords and coords.fmt or "%d, %d", coordX and coordX * 100, coordY and coordY * 100) end
end

-- Set profile
Expand Down
2 changes: 1 addition & 1 deletion ShestakUI/Modules/Maps/WorldMap.lua
Expand Up @@ -63,7 +63,7 @@ WorldMapFrame:HookScript("OnUpdate", function(self)
x, y = GetPlayerMapPos(unitMap)
end

if x ~= 0 and y ~= 0 then
if x and y and x >= 0 and y >= 0 then
coords.PlayerText:SetFormattedText("%s: %.0f,%.0f", T.name, x * 100, y * 100)
else
coords.PlayerText:SetText(UnitName("player")..": ".."|cffff0000"..L_MAP_BOUNDS.."|r")
Expand Down

0 comments on commit 57e60d4

Please sign in to comment.