Skip to content

Commit

Permalink
Add character != nil check to APL
Browse files Browse the repository at this point in the history
  • Loading branch information
1337LutZ committed Jan 16, 2025
1 parent 77608e5 commit bb8dc87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sim/core/apl.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (unit *Unit) newAPLRotation(config *proto.APLRotation) *APLRotation {
}

// If user has Item Swapping enabled and hasn't swapped back to the main set do it here.
if character.ItemSwap.IsEnabled() {
if character != nil && character.ItemSwap.IsEnabled() {
var hasMainSwap bool
for _, prepullAction := range rotation.allPrepullActions() {
if action, ok := prepullAction.impl.(*APLActionItemSwap); ok {
Expand Down

0 comments on commit bb8dc87

Please sign in to comment.