When a script subfunction calls another subfunction, local variables are being overwritten if they have the same name.
function Test1(); begin aByte := 1; result := aByte; end;
function Test2(); begin aByte := 2; Test1(); print(aByte); // 1 end;
function Test1(); begin aByte := 1; result := aByte; end;
function Test2(); begin aByte := 2; Test1(); print(aByte); // 1 end;