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) function CC:WipeCache(global)
if global then if global then
for realm in pairs(self.cache) do for realm in pairs(self.cache) do
wipe(realm) wipe(self.cache[realm])
end end
wipe(self.cache) wipe(self.cache)
@@ -230,7 +230,7 @@ function CC:WipeCache(global)
E:Print(L["Class DB cache wiped."]) E:Print(L["Class DB cache wiped."])
else else
for realm in pairs(self.tempCache) do for realm in pairs(self.tempCache) do
wipe(realm) wipe(self.tempCache[realm])
end end
wipe(self.tempCache) wipe(self.tempCache)