function prints one thing, returns another

This problem changed into a different one. it turns out that i wrote

Buffer1 = PreCompute( currentSample );

i got the capital letter wrong. it should have been buffer1, but it didnt print an error on the undeclared variable, unity pretended Buffer1 was buffer1 while playing… anyone one else been having these kinds of errors on the mostly recent unity?

function PreCompute ( sampleNumber : int): float[]
{    
    ...some code

   print (returnedarray[123]); ... prints 0.432
   return returnedarray;
}

function update{
   array = Precompute(myInt);
   print (array[123]);

}

print returned 0.123 at end of function, and next line the same array prints 0 when returned at end of function in Update.

Precompute is casesensitive, you should call PreCompute instead