From 20832a3ff65faae6bfef7ecef08da5f21f037510 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Sat, 14 Apr 2007 01:22:00 +0000 Subject: [PATCH] * Fix to the SV conversion, if sv.global doesn't exist --- PerfectRaid.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PerfectRaid.lua b/PerfectRaid.lua index 2bebc85..10de551 100644 --- a/PerfectRaid.lua +++ b/PerfectRaid.lua @@ -57,8 +57,11 @@ function PerfectRaid:Initialize() utils = self.utils -- This is a small procedure to update the saved variables + PerfectRaidDB = PerfectRaidDB or {} local sv = PerfectRaidDB + if not sv.global then sv.global = {} end + if sv and not sv.global.sv_converted then if sv.char then local converted = {} @@ -89,7 +92,6 @@ function PerfectRaid:Initialize() sv.profileKeys = converted end - if not sv.global then sv.global = {} end sv.global.sv_converted = true end end -- 1.7.9.5