Skip to content

Commit

Permalink
missed a null check
Browse files Browse the repository at this point in the history
  • Loading branch information
CMDR-Bill-Doors committed Jul 30, 2024
1 parent 0c90cd5 commit 0f3e0d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/CombatExtended/CombatExtended/Verbs/Verb_ShootCE.cs
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ protected virtual bool OnCastSuccessful()
}

//Drop casings
if (VerbPropsCE.ejectsCasings && !ext.DropCasingWhenReload)
if (VerbPropsCE.ejectsCasings && !ext?.DropCasingWhenReload ?? true)
{
CE_Utility.GenerateAmmoCasings(projectilePropsCE, fromPawn ? drawPos : caster.DrawPos, caster.Map, AimAngle, VerbPropsCE.recoilAmount, fromPawn: fromPawn, extension: ext);
}
Expand Down

0 comments on commit 0f3e0d8

Please sign in to comment.