From a988df656b4d37dfa2472a4cde390185cfcea8b5 Mon Sep 17 00:00:00 2001 From: jacopo grandi Date: Tue, 2 Mar 2021 18:26:39 +0100 Subject: test foundation and functional reimplementation of cost function --- gst/fxs.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gst/fxs.c') 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++; } -- cgit v1.2.3-54-g00ecf