 			{
 				var index : uint = indexData.readUnsignedShort();
 				
-				indexData.position -= 4;
+				indexData.position -= 2;
 				indexData.writeShort(oldVertexIdToNewVertexId[index]);
 			}
 			indexData.position = indexDataStartPosition;

	 */
	public final class GeometrySanitizer
	{
		public static const INDEX_LIMIT		: uint = 524270;
		public static const VERTEX_LIMIT	: uint = 65535;
		
		public static function isValid(indexData		: ByteArray,
									   vertexData		: ByteArray,

					neededVerticesCount = 0;
					for (localVertexId = 0; localVertexId < 3; ++localVertexId)
					{
						oldVertexIds[localVertexId]	= inIndices[uint(totalUsedIndices + usedIndicesCount + localVertexId)];
						
						var tmp : Object = usedVerticesDic[oldVertexIds[localVertexId]];
						
