diff options
Diffstat (limited to 'src/cubeit.c')
-rw-r--r-- | src/cubeit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cubeit.c b/src/cubeit.c index cfa3e8ce..18b20556 100644 --- a/src/cubeit.c +++ b/src/cubeit.c @@ -138,8 +138,8 @@ static void interpolate_linear(double *vals, double v, val1 = v*(1.0-f); val2 = v*f; - vals[xs*ys*k + xs*yv + xv] = val1; - vals[xs*ys*(k+1) + xs*yv + xv] = val2; + vals[xs*ys*k + xs*yv + xv] += val1; + vals[xs*ys*(k+1) + xs*yv + xv] += val2; } |