summaryrefslogtreecommitdiff
path: root/src/bullets.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bullets.c')
-rw-r--r--src/bullets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bullets.c b/src/bullets.c
index fb56a12..ff96db9 100644
--- a/src/bullets.c
+++ b/src/bullets.c
@@ -75,7 +75,7 @@ bool check_if_bullet_collided_with_object(bullet* b, platform_window* window) {
bool result = false;
float dist_of_closest_intersect = __FLT_MAX__;
- for (int i = 0; i < max_objects; i++) {
+ for (int i = 0; i < MAX_OBJECTS; i++) {
object o = objects[i];
if (!o.active) continue;
if (b->position.z <= o.h + o.size.z && b->position.z >= o.h) {