View Single Post
03/08/21, 03:42 PM   #9
Shadowfen
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 84
Ist't the standard defaults of ZO_SavedVars doing the same?
I mean if I just add an entry to a default table which is used in my SavedVars already it will be added if it did not exist (was nil in the disk file) before upon login/reloadui.
It does in the very simplest of cases - which you tested.

If you have a table in your saved variables and you add a new value inside of that table, then the simple ZOS default does not work - because it does not recurse into subtables to check there as well. It says yeah, subtable_a exists and does not bother to look if subtable_a["whatever"] exists.
  Reply With Quote