summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ball.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ball.c b/src/ball.c
index 1386cfd..2a2c721 100644
--- a/src/ball.c
+++ b/src/ball.c
@@ -100,7 +100,7 @@ db_balls_collisions(struct db_ball *ball)
int col_x;
int col_y;
- for (; other != NULL; other = other->next) {
+ for (other = ball->next; other != NULL; other = other->next) {
if (db_col_pt_cir_cir(ball->x, ball->y, ball->r,
other->x, other->y, other->r,
&col_x, &col_y)) {