diff options
author | Cyrille Henry <nusmuk@users.sourceforge.net> | 2014-06-13 12:41:53 +0000 |
---|---|---|
committer | Cyrille Henry <nusmuk@users.sourceforge.net> | 2014-06-13 12:41:53 +0000 |
commit | 3513c7f0c0dbb5e6f5e711618f3433f65c81e6b3 (patch) | |
tree | 9cb438408aa87ff17cef702662817a6ca10e778e | |
parent | 398be306c1080d20b2399ccaa0f5ad6d15073a6c (diff) |
small bug regarding data position on the table
svn path=/trunk/externals/pmpd/; revision=17320
-rw-r--r-- | pmpd2d_interactor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pmpd2d_interactor.c b/pmpd2d_interactor.c index 157a0df..83888b8 100644 --- a/pmpd2d_interactor.c +++ b/pmpd2d_interactor.c @@ -205,7 +205,7 @@ void pmpd2d_iMatrix_i(t_pmpd2d *x, int i, t_float zone_x_min, t_float zone_x_max Xtable *= taille_x - 1; //from [ 0 to table size - 1[ Ytable *= taille_y - 1; index = (int)Xtable; - index += (int)Ytable*taille_y; + index += (int)Ytable*taille_x; Xtable = Xtable - (int)(Xtable); Ytable = Ytable - (int)(Ytable); force1 = (1-Xtable) * tableX[index].w_float + (Xtable) * tableX[index+1].w_float ; |