Fixed more bugs on the new Breakdown Window
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
|
||||
DETAILS_STORAGE_VERSION = 5
|
||||
|
||||
function _detalhes:CreateStorageDB()
|
||||
function Details:CreateStorageDB()
|
||||
DetailsDataStorage = {
|
||||
VERSION = DETAILS_STORAGE_VERSION,
|
||||
[14] = {}, --normal mode (raid)
|
||||
@@ -19,18 +19,18 @@ f:RegisterEvent ("ADDON_LOADED")
|
||||
|
||||
f:SetScript ("OnEvent", function (self, event, addonName)
|
||||
if (addonName == "Details_DataStorage") then
|
||||
DetailsDataStorage = DetailsDataStorage or _detalhes:CreateStorageDB()
|
||||
DetailsDataStorage = DetailsDataStorage or Details:CreateStorageDB()
|
||||
DetailsDataStorage.Data = {}
|
||||
|
||||
if (DetailsDataStorage.VERSION < DETAILS_STORAGE_VERSION) then
|
||||
--> do revisions
|
||||
if (DetailsDataStorage.VERSION < 5) then
|
||||
table.wipe (DetailsDataStorage)
|
||||
DetailsDataStorage = _detalhes:CreateStorageDB()
|
||||
DetailsDataStorage = Details:CreateStorageDB()
|
||||
end
|
||||
end
|
||||
|
||||
if (_detalhes and _detalhes.debug) then
|
||||
if (Details and Details.debug) then
|
||||
print ("|cFFFFFF00Details! Storage|r: loaded!")
|
||||
end
|
||||
DETAILS_STORAGE_LOADED = true
|
||||
|
||||
Reference in New Issue
Block a user