Skip to content

Commit

Permalink
Fix AAOnly not working as intended
Browse files Browse the repository at this point in the history
  • Loading branch information
Starkku committed Mar 24, 2024
1 parent d9ad394 commit b3fa1e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ext/Techno/Hooks.Firing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ DEFINE_HOOK(0x6FC339, TechnoClass_CanFire, 0x6)
CellClass* pTargetCell = nullptr;

// AAOnly doesn't need to be checked if LandTargeting=1.
if ((!pTechno || pTechno->GetTechnoType()->LandTargeting != LandTargetingType::Land_Not_OK) && pWeapon->Projectile->AA && pTarget && !pTarget->IsInAir())
if (pThis->GetTechnoType()->LandTargeting != LandTargetingType::Land_Not_OK && pWeapon->Projectile->AA && pTarget && !pTarget->IsInAir())
{
auto const pBulletTypeExt = BulletTypeExt::ExtMap.Find(pWeapon->Projectile);

Expand Down

0 comments on commit b3fa1e2

Please sign in to comment.