Browse Source

bugfix wrt haxe 4.0 git

Nicolas Cannasse 7 years ago
parent
commit
544c20fe55
1 changed files with 1 additions and 1 deletions
  1. 1 1
      h2d/Sprite.hx

+ 1 - 1
h2d/Sprite.hx

@@ -433,7 +433,7 @@ class Sprite {
 
 	function emitTile( ctx : RenderContext, tile : h2d.Tile ) {
 		if( nullDrawable == null )
-			nullDrawable = new h2d.Drawable(null);
+			nullDrawable = @:privateAccess new h2d.Drawable(null);
 		if( !ctx.hasBuffering() ) {
 			nullDrawable.absX = absX;
 			nullDrawable.absY = absY;