ncannasse hace 9 años
padre
commit
ce5cea133d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);