diff --git a/src/lib/commands/spy.c b/src/lib/commands/spy.c index 7f7ad731..a2c57457 100644 --- a/src/lib/commands/spy.c +++ b/src/lib/commands/spy.c @@ -253,8 +253,8 @@ static void insert(coord *table, int *len, coord x, coord y) { if (!check(table, len, x, y)) { - table[*len++] = x; - table[*len++] = y; + table[(*len)++] = x; + table[(*len)++] = y; } }