File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1928,10 +1928,7 @@ void CVehicleSA::RecalculateSuspensionLines()
19281928 if (!pModelInfo)
19291929 return ;
19301930
1931- // Parenthesise the precedence to match the original intent: only proceed
1932- // for monster trucks or cars. The bareword `pModelInfo && X || Y` parsed
1933- // as `(pModelInfo && X) || Y`, which let a null pModelInfo fall through
1934- // to the IsCar() deref below on pure-car paths.
1931+ // Only cars and monster trucks use this suspension setup path.
19351932 if ((pModelInfo->IsMonsterTruck () || pModelInfo->IsCar ()))
19361933 {
19371934 // Trains (Their trailers do as well!)
Original file line number Diff line number Diff line change 1616#include < game/CPedDamageResponse.h>
1717#include < game/CEventList.h>
1818#include < game/CEventDamage.h>
19- #include " ../game_sa/CCamSA.h"
2019#include < cmath>
2120
2221class CEventDamageSAInterface ;
You can’t perform that action at this time.
0 commit comments