Skip to content

Commit

Permalink
Fix on join attachment error
Browse files Browse the repository at this point in the history
  • Loading branch information
timmybo5 committed Jun 14, 2024
1 parent c752d1f commit 626462a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/swb_base/Weapon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ protected override void OnStart()
Attachments.ForEach( att =>
{
// Log.Info( "[" + att.Name + "] equipped ->" + att.Equipped );
if ( att.Equipped )
if ( att is not null && att.Equipped )
att.Equip();
} );
}
Expand Down

0 comments on commit 626462a

Please sign in to comment.