aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index a9c33cb..ec72a0f 100644
--- a/main.c
+++ b/main.c
@@ -68,13 +68,13 @@ newflock(int nbirds, Rectangle jail)
f->birds = realloc(f->birds, ++f->nbirds*sizeof(Bird));
if(f->birds == nil)
sysfatal("realloc: %r");
- setrealloctag(f->birds, getcallerpc(&nbirds));
b = &f->birds[f->nbirds-1];
b->p = Pt2(frand()*Dx(jail),frand()*Dy(jail),1);
b->v = Vec2(cos(frand()*2*PI),sin(frand()*2*PI));
b->v = mulpt2(b->v, TERMINALV);
b->color = pal[Cfg];
}
+ setrealloctag(f->birds, getcallerpc(&nbirds));
return f;
}