fix nil error

This commit is contained in:
Crum
2018-06-24 23:03:48 -05:00
parent 2941634d54
commit 0bce1f6cb6
+2 -2
View File
@@ -220,7 +220,7 @@ end
function CC:WipeCache(global)
if global then
for realm in pairs(self.cache) do
wipe(realm)
wipe(self.cache[realm])
end
wipe(self.cache)
@@ -230,7 +230,7 @@ function CC:WipeCache(global)
E:Print(L["Class DB cache wiped."])
else
for realm in pairs(self.tempCache) do
wipe(realm)
wipe(self.tempCache[realm])
end
wipe(self.tempCache)