From e087521a36f359b0959b2e2d5d419e9ea28df6f6 Mon Sep 17 00:00:00 2001 From: Jaime Humberto Macias Bustamante Date: Thu, 3 Apr 2025 16:08:25 -0700 Subject: [PATCH] Update CustomClassDecl.hx oops --- hscript/customclass/CustomClassDecl.hx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hscript/customclass/CustomClassDecl.hx b/hscript/customclass/CustomClassDecl.hx index 7e3da30..22c43b6 100644 --- a/hscript/customclass/CustomClassDecl.hx +++ b/hscript/customclass/CustomClassDecl.hx @@ -49,7 +49,8 @@ class CustomClassDecl implements IHScriptCustomAccessBehaviour { function cacheImports() { // This will make imported classes available for Static Functions - for(i => imp in imports) { + var i:Int = 0; + for(s => imp in imports) { var importedClass = imp.fullPath; var importAlias = imp.as; @@ -63,9 +64,10 @@ class CustomClassDecl implements IHScriptCustomAccessBehaviour { e: ExprDef.EImport(importedClass, importAlias), pmin: 0, pmax: 0, - origin: this.className, + origin: this.classDecl.name, line: i }; + i++; #else var e = Expr.EImport(importedClass, importAlias); #end