From e16fbe8321ce6ce68d065737aacb0a93563fe774 Mon Sep 17 00:00:00 2001 From: Parnic Date: Mon, 25 Oct 2010 06:25:20 +0000 Subject: [PATCH] - plugged a hole in the logic from r710 that could potentially cause a player to lose their lacerate/sunder/maelstrom module without creating a replacement custom counter if they never changed anything in the configuration for it (there would be no entry in the SavedVariables) --- IceCore.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/IceCore.lua b/IceCore.lua index c94f11f..ad23cd6 100644 --- a/IceCore.lua +++ b/IceCore.lua @@ -143,6 +143,17 @@ function IceCore.prototype:CheckDisplayUpdateMessage() StaticPopup_Show("ICEHUD_UPDATE_PERIOD_MATTERS") end + if self.accountSettings.lastRunVersion < 710 then + if self.settings.modules["MaelstromCount"] == nil then + self.settings.modules["MaelstromCount"] = {} + end + if self.settings.modules["SunderCount"] == nil then + self.settings.modules["SunderCount"] = {} + end + if self.settings.modules["LacerateCount"] == nil then + self.settings.modules["LacerateCount"] = {} + end + end self.accountSettings.lastRunVersion = thisVersion end end