Skip to content

Commit

Permalink
Remove useless sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
CrimRecya committed Dec 27, 2024
1 parent c2a0d02 commit 10163b9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Ext/Bullet/Hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -455,11 +455,8 @@ DEFINE_HOOK(0x415F25, AircraftClass_Fire_TrajectorySkipInertiaEffect, 0x6)

GET(BulletClass*, pThis, ESI);

if (auto const pExt = BulletExt::ExtMap.Find(pThis))
{
if (pExt->Trajectory)
return SkipCheck;
}
if (BulletExt::ExtMap.Find(pThis)->Trajectory)
return SkipCheck;

return 0;
}

0 comments on commit 10163b9

Please sign in to comment.