Skip to content

Commit

Permalink
yeah what i expected, a common error.
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesisfeline committed Feb 21, 2024
1 parent 929a0e6 commit 757ae29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions source/backend/Paths.hx
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ class Paths
bitmap.disposeImage();
bitmap.image.data = null;
bitmap.image = null;
bitmap.readable = true;
}

var graph:FlxGraphic = FlxGraphic.fromBitmapData(bitmap, false, file);
Expand Down
6 changes: 3 additions & 3 deletions source/psychlua/HScript.hx
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ class HScript extends SScript
}
}

public function executeCode(?funcToRun:String = null, ?funcArgs:Array<Dynamic> = null):TeaCall
public function executeCode(?funcToRun:String = null, ?funcArgs:Array<Dynamic> = null):Tea
{
if(funcToRun == null) return null;

Expand All @@ -339,7 +339,7 @@ class HScript extends SScript
return callValue;
}

public function executeFunction(funcToRun:String = null, funcArgs:Array<Dynamic>):TeaCall
public function executeFunction(funcToRun:String = null, funcArgs:Array<Dynamic>):Tea
{
if (funcToRun == null)
return null;
Expand All @@ -353,7 +353,7 @@ class HScript extends SScript
funk.addLocalCallback("runHaxeCode", function(codeToRun:String, ?varsToBring:Any = null, ?funcToRun:String = null, ?funcArgs:Array<Dynamic> = null):Dynamic {
#if SScript
initHaxeModuleCode(funk, codeToRun, varsToBring);
var retVal:TeaCall = funk.hscript.executeCode(funcToRun, funcArgs);
var retVal:Tea = funk.hscript.executeCode(funcToRun, funcArgs);
if (retVal != null)
{
if(retVal.succeeded)
Expand Down

0 comments on commit 757ae29

Please sign in to comment.