ncannasse 9 years ago
parent
commit
ce5cea133d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      h2d/CdbLevel.hx

+ 1 - 1
h2d/CdbLevel.hx

@@ -351,7 +351,7 @@ class CdbLevel extends Layers {
 				lprops = lp.p;
 				break;
 			}
-		var mode : cdb.Data.LayerMode = lprops != null ? lprops.mode : Tiles;
+		var mode : cdb.Data.LayerMode = lprops != null && lprops.mode != null ? lprops.mode : Tiles;
 		switch( mode ) {
 		case Tiles:
 			l.data = LTiles(data);