Skip to content

Commit efca55f

Browse files
committed
Update Hooks.BugFixes.cpp
1 parent 75b3e95 commit efca55f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Misc/Hooks.BugFixes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1972,14 +1972,14 @@ DEFINE_HOOK(0x51BFA2, InfantryClass_IsCellOccupied_Start, 0x6)
19721972
{
19731973
enum { MoveOK = 0x51C02D };
19741974
GET(InfantryClass*, pThis, EBP);
1975-
return pThis->IsInAir() && pThis->Type->BalloonHover && RulesExt::Global()->BalloonHoverPathingFix ? MoveOK : 0;
1975+
return pThis->Type->BalloonHover && RulesExt::Global()->BalloonHoverPathingFix && pThis->IsInAir() ? MoveOK : 0;
19761976
}
19771977

19781978
DEFINE_HOOK(0x73F0A7, UnitClass_IsCellOccupied_Start, 0x9)
19791979
{
19801980
enum { MoveOK = 0x73F23F };
19811981
GET(UnitClass*, pThis, ECX);
1982-
return pThis->IsInAir() && pThis->Type->BalloonHover && RulesExt::Global()->BalloonHoverPathingFix ? MoveOK : 0;
1982+
return pThis->Type->BalloonHover && RulesExt::Global()->BalloonHoverPathingFix && pThis->IsInAir() ? MoveOK : 0;
19831983
}
19841984

19851985
namespace ApproachTargetContext

0 commit comments

Comments
 (0)