summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2024-05-12 17:57:05 -0400
committerrealtradam <[email protected]>2024-05-12 17:57:05 -0400
commitc1cf626b9f1a70d7317c0b22719a65819126be4c (patch)
tree7661d5e0ece5a27e806ebbfb859cfd5f6562e422
parent9a2643d652f6dfba479dc62e5585811824bbc94a (diff)
downloadtojam2024-c1cf626b9f1a70d7317c0b22719a65819126be4c.tar.gz
tojam2024-c1cf626b9f1a70d7317c0b22719a65819126be4c.zip
.
-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;