Nicolas Cannasse hai 1 ano
pai
achega
d889b4c9e6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      hxsl/Flatten.hx

+ 1 - 1
hxsl/Flatten.hx

@@ -116,7 +116,7 @@ class Flatten {
 				access(a, v.type, e.p, AIndex(a));
 		case TArray( { e : TVar(v), p : vp }, eindex):
 			var a = varMap.get(v);
-			if( a == null || (v.type.match(TArray(_)) && eindex.e.match(TConst(CInt(_)))) )
+			if( a == null || (!v.type.match(TBuffer(_)) && eindex.e.match(TConst(CInt(_)))) )
 				e.map(mapExpr);
 			else {
 				switch( v.type ) {