diff --git a/aegisub/automation/autoload/kara-templater.lua b/aegisub/automation/autoload/kara-templater.lua index ad84d474d..b63b5c1b6 100644 --- a/aegisub/automation/autoload/kara-templater.lua +++ b/aegisub/automation/autoload/kara-templater.lua @@ -348,13 +348,13 @@ function apply_templates(meta, styles, subs, templates) tenv.fxgroup = {} tenv.relayer = function(layer) - line.layer = layer + tenv.line.layer = layer return "" end tenv.restyle = function(style) - line.style = style - line.styleref = styles[style] + tenv.line.style = style + tenv.line.styleref = styles[style] return "" end