fix: Fixes possibel NPE with misbehaving Weapon property (#1083)
This commit is contained in:
parent
8509b1f8a0
commit
da877f59a7
2 changed files with 2 additions and 2 deletions
|
|
@ -738,7 +738,7 @@ namespace Server
|
|||
|
||||
var weapon = Weapon;
|
||||
|
||||
if (!InRange(combatant, weapon.MaxRange))
|
||||
if (weapon == null || !InRange(combatant, weapon.MaxRange))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue