diff --git a/Runtime/Weapon/CFlameThrower.cpp b/Runtime/Weapon/CFlameThrower.cpp index a51d48ecd..3024e6dab 100644 --- a/Runtime/Weapon/CFlameThrower.cpp +++ b/Runtime/Weapon/CFlameThrower.cpp @@ -227,12 +227,12 @@ void CFlameThrower::Think(float dt, CStateManager& mgr) { if (r28 && x34c_flameWarp.IsProcessed()) { x318_flameBounds = x34c_flameWarp.CalculateBounds(); TUniqueId id = kInvalidUniqueId; - CRayCastResult res = DoCollisionCheck(id, x318_flameBounds, mgr); - if (TCastToPtr act = mgr.ObjectById(id)) { + const CRayCastResult res = DoCollisionCheck(id, x318_flameBounds, mgr); + if (TCastToConstPtr(mgr.ObjectById(id))) { ApplyDamageToActor(mgr, id, dt); } else if (res.IsValid()) { - CMaterialFilter useFilter = xf8_filter; - CDamageInfo useDInfo = CDamageInfo(x12c_curDamageInfo, dt); + const CMaterialFilter useFilter = xf8_filter; + const CDamageInfo useDInfo = CDamageInfo(x12c_curDamageInfo, dt); mgr.ApplyDamageToWorld(xec_ownerId, *this, res.GetPoint(), useDInfo, useFilter); } }