Skip to content

Commit

Permalink
Change reverted vs. changed logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hekili committed Dec 1, 2023
1 parent 6c3767a commit d03a306
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,8 @@ function Hekili:RestoreDefaults()
data.payload.version = v.version
data.payload.date = v.version
data.payload.builtIn = true
if existing.version < v.version then

if not existing or not existing.version or existing.version < v.version then
insert( changed, k )
else
insert( reverted, k )
Expand Down

0 comments on commit d03a306

Please sign in to comment.