We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 423dc38 commit 5178cf1Copy full SHA for 5178cf1
src/ranged.cpp
@@ -2258,7 +2258,7 @@ static projectile make_gun_projectile( const item &gun )
2258
proj.range = gun.gun_range();
2259
proj.proj_effects = gun.ammo_effects();
2260
2261
- if( gun.ammo_data()->phase == phase_id::LIQUID ) {
+ if( gun.has_ammo_data() && gun.ammo_data()->phase == phase_id::LIQUID ) {
2262
proj.proj_effects.insert( ammo_effect_LIQUID );
2263
}
2264
0 commit comments