comparison ProspectMe_Config.lua @ 17:4f5357900609

Fixed a bug in the database reset function
author Geoff Brock <mischivin@gmail.com>
date Sun, 04 Sep 2016 16:50:14 -0400
parents dabd5c6540ca
children 78a07841e004
comparison
equal deleted inserted replaced
16:57dbbffacc21 17:4f5357900609
54 wipe(PM_SessionTable[id]) 54 wipe(PM_SessionTable[id])
55 end 55 end
56 end 56 end
57 57
58 local function ResetDatabase() 58 local function ResetDatabase()
59 for i, v in pairs(PM_ResultsTable) do 59 if PM_ResultsTable then
60 ClearEntry(i) 60 for i, v in pairs(PM_ResultsTable) do
61 end 61 ClearEntry(i)
62 wipe(PM_ResultsTable) 62 end
63 wipe(PM_SessionTable) 63 wipe(PM_ResultsTable)
64 end
65 if PM_SessionTable then
66 wipe(PM_SessionTable)
67 end
64 end 68 end
65 69
66 local function UpdateConfig() 70 local function UpdateConfig()
67 71
68 PM_Config.results = ProspectMeResultsToggle:GetChecked() 72 PM_Config.results = ProspectMeResultsToggle:GetChecked()