Commit 761231521261a76340f3ef08c9c61b4fb081ae8b
1 parent
387e6843
Added initialization of fire_angle
Showing
2 changed files
with
2 additions
and
2 deletions
06-multiple_targets/cannon.c
07-tapered_bullet/cannon.c
@@ -114,7 +114,7 @@ int main() { | @@ -114,7 +114,7 @@ int main() { | ||
114 | 114 | ||
115 | double bullet_distance; | 115 | double bullet_distance; |
116 | int is_shooting = 0; | 116 | int is_shooting = 0; |
117 | - double fire_angle; | 117 | + double fire_angle = 0; |
118 | 118 | ||
119 | const int num_targets = 3; | 119 | const int num_targets = 3; |
120 | 120 |