Skip to content

Commit

Permalink
Fixed a incorrect condition in ItemSwap.reset()
Browse files Browse the repository at this point in the history
  • Loading branch information
Horatio27 committed Dec 29, 2023
1 parent b8404f9 commit 09d39b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sim/core/item_swaps.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ func (swap *ItemSwap) swapWeapon(slot proto.ItemSlot) {
}

func (swap *ItemSwap) reset(sim *Simulation) {
if !swap.IsEnabled() || swap.IsSwapped() {
if !swap.IsEnabled() || !swap.IsSwapped() {
return
}

Expand Down

0 comments on commit 09d39b8

Please sign in to comment.