We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4295d42 commit a2a12f1Copy full SHA for a2a12f1
source/funkin/backend/scripting/HScript.hx
@@ -74,8 +74,10 @@ class HScript extends Script {
74
var code = Assets.getText(p);
75
var expr:Expr = null;
76
try {
77
- if (code != null && code.trim() != "")
+ if (code != null && code.trim() != "") {
78
+ parser.line = 1; // fun fact: this is all you need to reuse a parser without issues. all the other vars get reset on parse.
79
expr = parser.parseString(code, cl.join("/") + "." + hxExt);
80
+ }
81
} catch(e:Error) {
82
_errorHandler(e);
83
} catch(e) {
0 commit comments