mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-29 15:23:02 +05:00
Add null check to Rhino code
This commit is contained in:
parent
65862b38cf
commit
3a40147ce9
1 changed files with 10 additions and 4 deletions
|
@ -680,11 +680,17 @@ void CAutomobile::Fix_SilentPatch()
|
||||||
Door[REAR_LEFT_DOOR].SetExtraWheelPositions( 1.0f, 1.0f, 1.0f, 1.0f );
|
Door[REAR_LEFT_DOOR].SetExtraWheelPositions( 1.0f, 1.0f, 1.0f, 1.0f );
|
||||||
Door[REAR_RIGHT_DOOR].SetExtraWheelPositions( 1.0f, 1.0f, 1.0f, 1.0f );
|
Door[REAR_RIGHT_DOOR].SetExtraWheelPositions( 1.0f, 1.0f, 1.0f, 1.0f );
|
||||||
|
|
||||||
RwObject* object = GetFirstObject( m_pCarNode[3] );
|
if ( m_pCarNode[3] != nullptr )
|
||||||
RpAtomicSetFlags( object, 0 );
|
{
|
||||||
|
RwObject* object = GetFirstObject( m_pCarNode[3] );
|
||||||
|
RpAtomicSetFlags( object, 0 );
|
||||||
|
}
|
||||||
|
|
||||||
object = GetFirstObject( m_pCarNode[6] );
|
if ( m_pCarNode[6] != nullptr )
|
||||||
RpAtomicSetFlags( object, 0 );
|
{
|
||||||
|
RwObject* object = GetFirstObject( m_pCarNode[6] );
|
||||||
|
RpAtomicSetFlags( object, 0 );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue