# HG changeset patch # User Geoff Brock # Date 1473022214 14400 # Node ID 4f53579006091688f365ae2f65c7823c205749d2 # Parent 57dbbffacc21a2795662f35ec872751271df2835 Fixed a bug in the database reset function diff -r 57dbbffacc21 -r 4f5357900609 ProspectMe_Config.lua --- a/ProspectMe_Config.lua Fri Aug 19 13:06:01 2016 -0400 +++ b/ProspectMe_Config.lua Sun Sep 04 16:50:14 2016 -0400 @@ -56,11 +56,15 @@ end local function ResetDatabase() - for i, v in pairs(PM_ResultsTable) do - ClearEntry(i) + if PM_ResultsTable then + for i, v in pairs(PM_ResultsTable) do + ClearEntry(i) + end + wipe(PM_ResultsTable) end - wipe(PM_ResultsTable) - wipe(PM_SessionTable) + if PM_SessionTable then + wipe(PM_SessionTable) + end end local function UpdateConfig()