Skip to content

Commit 84b9ed9

Browse files
authored
idk might fix??
1 parent 5e6364f commit 84b9ed9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

source/ScriptedClass.hx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ using StringTools;
1010
class ScriptedClass extends FlxUIState
1111
{
1212
public var script:HScript = null;
13+
public var path:String = "";
1314

1415
public static var instance:ScriptedClass = null;
1516
public static var trackerFolder:Int = 0;
16-
var path:String = "";
1717

1818
public function new(fileName:String, ?args:Array<Dynamic>)
1919
{
@@ -29,14 +29,14 @@ class ScriptedClass extends FlxUIState
2929

3030
script = new HScript(path, false);
3131
script.execute(path, false);
32-
33-
scriptExecute("new", args);
3432
}
3533
catch (e:Dynamic)
3634
{
3735
script = null;
3836
trace('Error getting script from $fileName!\n$e');
3937
}
38+
39+
scriptExecute("new", args);
4040
}
4141

4242
override function create()

source/ScriptedSubClass.hx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ using StringTools;
99
class ScriptedSubClass extends FlxUISubState
1010
{
1111
public var script:HScript = null;
12+
public var path:String = "";
1213

1314
public static var instance:ScriptedSubClass = null;
1415
public static var trackerFolder:Int = 0;
15-
var path:String = "";
1616

1717
public function new(fileName:String, ?args:Array<Dynamic>)
1818
{
@@ -28,14 +28,14 @@ class ScriptedSubClass extends FlxUISubState
2828

2929
script = new HScript(path, false);
3030
script.execute(path, false);
31-
32-
scriptExecute("new", args);
3331
}
3432
catch (e:Dynamic)
3533
{
3634
script = null;
3735
trace('Error getting script from $fileName!\n$e');
3836
}
37+
38+
scriptExecute("new", args);
3939
}
4040

4141
override function create()

0 commit comments

Comments
 (0)