Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions SexyMap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,11 @@ function mod:ADDON_LOADED(addon)

local char = UnitName("player").."-"..GetRealmName()
if not SexyMap2DB[char] then
if SexyMap2DB.global then
SexyMap2DB[char] = "global" -- Default to global profile if it exists
else
SexyMap2DB[char] = {}
end
end

local dbToDispatch
Expand Down
4 changes: 4 additions & 0 deletions SexyMap_TBC.lua
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,11 @@ function mod:ADDON_LOADED(addon)

local char = UnitName("player").."-"..GetRealmName()
if not SexyMap2DB[char] then
if SexyMap2DB.global then
SexyMap2DB[char] = "global" -- Default to global profile if it exists
else
SexyMap2DB[char] = {}
end
end

local dbToDispatch
Expand Down
4 changes: 4 additions & 0 deletions SexyMap_Vanilla.lua
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,11 @@ function mod:ADDON_LOADED(addon)

local char = UnitName("player").."-"..GetRealmName()
if not SexyMap2DB[char] then
if SexyMap2DB.global then
SexyMap2DB[char] = "global" -- Default to global profile if it exists
else
SexyMap2DB[char] = {}
end
end

local dbToDispatch
Expand Down
4 changes: 4 additions & 0 deletions SexyMap_Wrath.lua
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,11 @@ function mod:ADDON_LOADED(addon)

local char = UnitName("player").."-"..GetRealmName()
if not SexyMap2DB[char] then
if SexyMap2DB.global then
SexyMap2DB[char] = "global" -- Default to global profile if it exists
else
SexyMap2DB[char] = {}
end
end

local dbToDispatch
Expand Down