From deecc4d9682fc3f48b5a23c33c7afac82f9f12c1 Mon Sep 17 00:00:00 2001 From: Athene Date: Wed, 22 Jul 2015 23:09:19 +0200 Subject: [PATCH] CreationVersion fix --- MikScrollingBattleText/MikScrollingBattleText.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MikScrollingBattleText/MikScrollingBattleText.lua b/MikScrollingBattleText/MikScrollingBattleText.lua index abfec25..0638a20 100644 --- a/MikScrollingBattleText/MikScrollingBattleText.lua +++ b/MikScrollingBattleText/MikScrollingBattleText.lua @@ -1145,6 +1145,11 @@ function MikSBT.UpdateProfiles() -- Loop through all the profiles. for _, profile in MikSBT_Save.Profiles do -- Check if the profile was created prior to version 2.0. + if not profile.CreationVersion then + -- There is an error in this Profile, we need to reset it. + MikSBT.ResetProfile(profile); + end + if (profile.CreationVersion < 2.0) then -- Update the profile's structure. profile.ShowOverheals = MikSBT.DEFAULT_CONFIG.ShowOverheals;