We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d347e8 commit d85b30dCopy full SHA for d85b30d
src/ranged.cpp
@@ -729,7 +729,7 @@ bool Character::handle_gun_damage( item &it )
729
730
731
// i am bad at math, so we will use vibes instead
732
- double gun_jam_chance;
+ double gun_jam_chance = 0;
733
int gun_damage = it.damage() / 1000.0;
734
switch( gun_damage ) {
735
case 0:
@@ -749,7 +749,7 @@ bool Character::handle_gun_damage( item &it )
749
break;
750
}
751
752
- int mag_damage;
+ int mag_damage = 0;
753
double mag_jam_chance = 0;
754
if( it.magazine_current() ) {
755
mag_damage = it.magazine_current()->damage() / 1000.0;
0 commit comments