aboutsummaryrefslogtreecommitdiff
path: root/gst/fxs.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/fxs.c')
-rw-r--r--gst/fxs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/fxs.c b/gst/fxs.c
index 90f56b2..25ddf18 100644
--- a/gst/fxs.c
+++ b/gst/fxs.c
@@ -12,6 +12,7 @@ void fx_init (fxs *fx) {
}
void fx_add_bullet (fxs *fx, bullet *b) {
+ if (fx->bulletslen >= 1024-1) return;
fx->bullets[fx->bulletslen] = *b;
fx->bulletslen++;
}