From 09d39b84fa30da1bf29f837c96d47c94071ace66 Mon Sep 17 00:00:00 2001 From: Horatio Date: Thu, 28 Dec 2023 23:45:34 -0400 Subject: [PATCH] Fixed a incorrect condition in ItemSwap.reset() --- sim/core/item_swaps.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim/core/item_swaps.go b/sim/core/item_swaps.go index 917938c904..0677fb1fad 100644 --- a/sim/core/item_swaps.go +++ b/sim/core/item_swaps.go @@ -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 }