From d7c9135d27575c457051cce3a9dabf5c8e6f1082 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 24 Apr 2020 01:12:01 -0400 Subject: [PATCH] CBomb: Fix boolean parameter not being used within SetFuseDisabled() Prevents silent logic bugs, particularly given this function is called with true as well inside CTryclops::InMaxRange. --- Runtime/Weapon/CBomb.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/Weapon/CBomb.hpp b/Runtime/Weapon/CBomb.hpp index c0c4a5015..3f89e6c7a 100644 --- a/Runtime/Weapon/CBomb.hpp +++ b/Runtime/Weapon/CBomb.hpp @@ -41,7 +41,7 @@ public: std::optional GetTouchBounds() const override; void SetVelocityWR(const zeus::CVector3f& vel) { x158_velocity = vel; } void SetConstantAccelerationWR(const zeus::CVector3f& acc) { x164_acceleration = acc; } - void SetFuseDisabled(bool b) { x190_26_disableFuse = false; } + void SetFuseDisabled(bool disabled) { x190_26_disableFuse = disabled; } void SetIsBeingDragged(bool b) { x190_25_beingDragged = b; } bool IsBeingDragged() const { return x190_25_beingDragged; } };