fitorey
New Member
- Joined
- Mar 9, 2025
- Messages
- 8
- Reaction score
- 2
3777/src/weapons.cpp at master · gesior/3777
Contribute to gesior/3777 development by creating an account on GitHub.
Code:
weapons.cpp: In member function ‘bool Weapons::loadDefaults()’:
weapons.cpp:86:41: warning: this statement may fall through [-Wimplicit-fallthrough=]
86 | if(it->ammoType != AMMO_NONE) {
| ^~
weapons.cpp:93:33: note: here
93 | case WEAPON_AMMO:
| ^~~~
this break only on:
if(it->ammoType != AMMO_NONE)
break;
is right?
intentional or it is an error?
i wanna fix the warning on build, but idk why this if is created