aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tracker/tracker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker/tracker.c b/tracker/tracker.c
index 429f6d2..f768290 100644
--- a/tracker/tracker.c
+++ b/tracker/tracker.c
@@ -655,7 +655,7 @@ static void tracker_getitem(t_tracker* x, t_float row, t_float col) {
introw = introw % x->x_rows;
if(introw < 0) introw = 0;
intcol = (int)col;
- intcol = introw % x->x_columns;
+ intcol = intcol % x->x_columns;
if(intcol < 0) intcol = 0;
SETFLOAT(&a, x->x_data[introw][intcol]);