- 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)

This commit is contained in:
Parnic
2010-10-25 06:25:20 +00:00
parent e2bce8cdae
commit e16fbe8321

View File

@ -143,6 +143,17 @@ function IceCore.prototype:CheckDisplayUpdateMessage()
StaticPopup_Show("ICEHUD_UPDATE_PERIOD_MATTERS") StaticPopup_Show("ICEHUD_UPDATE_PERIOD_MATTERS")
end 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 self.accountSettings.lastRunVersion = thisVersion
end end
end end