diff --git a/source/backend/Paths.hx b/source/backend/Paths.hx index 9d6c89e..04e6f08 100644 --- a/source/backend/Paths.hx +++ b/source/backend/Paths.hx @@ -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); diff --git a/source/psychlua/HScript.hx b/source/psychlua/HScript.hx index e299dbf..59aa3ea 100644 --- a/source/psychlua/HScript.hx +++ b/source/psychlua/HScript.hx @@ -314,7 +314,7 @@ class HScript extends SScript } } - public function executeCode(?funcToRun:String = null, ?funcArgs:Array = null):TeaCall + public function executeCode(?funcToRun:String = null, ?funcArgs:Array = null):Tea { if(funcToRun == null) return null; @@ -339,7 +339,7 @@ class HScript extends SScript return callValue; } - public function executeFunction(funcToRun:String = null, funcArgs:Array):TeaCall + public function executeFunction(funcToRun:String = null, funcArgs:Array):Tea { if (funcToRun == null) return null; @@ -353,7 +353,7 @@ class HScript extends SScript funk.addLocalCallback("runHaxeCode", function(codeToRun:String, ?varsToBring:Any = null, ?funcToRun:String = null, ?funcArgs:Array = 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)