Commit 761231521261a76340f3ef08c9c61b4fb081ae8b

Authored by Grzegorz Jabłoński
1 parent 387e6843

Added initialization of fire_angle

06-multiple_targets/cannon.c
... ... @@ -74,7 +74,7 @@ int main() {
74 74  
75 75 double bullet_distance;
76 76 int is_shooting = 0;
77   - double fire_angle;
  77 + double fire_angle = 0;
78 78  
79 79 const int num_targets = 3;
80 80  
... ...
07-tapered_bullet/cannon.c
... ... @@ -114,7 +114,7 @@ int main() {
114 114  
115 115 double bullet_distance;
116 116 int is_shooting = 0;
117   - double fire_angle;
  117 + double fire_angle = 0;
118 118  
119 119 const int num_targets = 3;
120 120  
... ...