Skip to content

Commit 2209500

Browse files
committed
fix: Fix possible nullaccess
1 parent 57c53b5 commit 2209500

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Models/SC/Char/PersonalWeapon/PersonalWeaponMode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ public function getDamagePerSecondAttribute(): float
3939
{
4040
$multiplier = $this->rounds_per_minute / 60;
4141

42-
return $this->weapon->ammunition->damage * $multiplier;
42+
return $this->weapon?->ammunition?->damage * $multiplier;
4343
}
4444
}

0 commit comments

Comments
 (0)