When an empty default script is serialized, both values saved to ExtraVars are skipped if the script is empty. This causes a problem when all commands are removed from a default script, as the change will not be saved.
To avoid this problem, we can always save the script size, and unset the packed command buffer if no commands are in the script when saving.
When an empty default script is serialized, both values saved to
ExtraVars
are skipped if the script is empty. This causes a problem when all commands are removed from a default script, as the change will not be saved.To avoid this problem, we can always save the script size, and unset the packed command buffer if no commands are in the script when saving.