diff --git a/hscript/CustomClass.hx b/hscript/CustomClass.hx index f62fa25..fbfcea2 100644 --- a/hscript/CustomClass.hx +++ b/hscript/CustomClass.hx @@ -44,6 +44,7 @@ class CustomClass implements IHScriptCustomClassBehaviour { // __interp.variables = __class.staticInterp.variables; __interp.publicVariables = __class.ogInterp.publicVariables; __interp.staticVariables = __class.ogInterp.staticVariables; + __interp.customClasses = __class.ogInterp.customClasses; for (f in __class.fields) { switch (Tools.expr(f)) { diff --git a/hscript/CustomClassHandler.hx b/hscript/CustomClassHandler.hx index 7eb0457..be64955 100644 --- a/hscript/CustomClassHandler.hx +++ b/hscript/CustomClassHandler.hx @@ -48,6 +48,7 @@ class CustomClassHandler implements IHScriptCustomConstructor implements IHScrip __interp.variables = ogInterp.variables; __interp.publicVariables = ogInterp.publicVariables; __interp.staticVariables = ogInterp.staticVariables; + __interp.customClasses = ogInterp.customClasses; var validField:Bool = false; var staticField:Bool = false;