summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/bullet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bullet.c b/src/bullet.c
index 2e4157f..d891d8b 100644
--- a/src/bullet.c
+++ b/src/bullet.c
@@ -72,7 +72,7 @@ bullet_collision_check(void)
bullets[i].position.x += bullets[i].direction.x * 0.25;
bullets[i].position.y += bullets[i].direction.y * 0.25;
bullets[i].position.z += bullets[i].direction.z * 0.25;
- Vector3 enemypos;
+ Vector3 enemypos = { 0 };
if (bullets[i].team == 1)
{
enemypos = world.players[1].position;