From 0f11a00cc019152a67a0af407552951b9f3e82b4 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 9 May 2020 22:27:54 -0400 Subject: [PATCH] CBeamProjectile: Silence unused variable warning --- Runtime/Weapon/CBeamProjectile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/Weapon/CBeamProjectile.cpp b/Runtime/Weapon/CBeamProjectile.cpp index 96c2bb52a..fb19a22d4 100644 --- a/Runtime/Weapon/CBeamProjectile.cpp +++ b/Runtime/Weapon/CBeamProjectile.cpp @@ -75,7 +75,7 @@ void CBeamProjectile::UpdateFx(const zeus::CTransform& xf, float dt, CStateManag mgr.BuildNearList(nearList, x36c_, CMaterialFilter::MakeExclude({EMaterialTypes::ProjectilePassthrough}), nullptr); TUniqueId collideId = kInvalidUniqueId; CRayCastResult res = RayCollisionCheckWithWorld(collideId, x298_previousPos, beamEnd, x300_intBeamLength, nearList, mgr); - if (TCastToPtr act = mgr.ObjectById(collideId)) { + if (TCastToConstPtr(mgr.ObjectById(collideId))) { SetCollisionResultData(EDamageType::Actor, res, collideId); if (x464_25_enableTouchDamage) ApplyDamageToActors(mgr, CDamageInfo(x12c_curDamageInfo, dt));