Attach extras to chassis only on vehicles which have this in hierarchy

This commit is contained in:
Silent 2018-03-28 19:47:35 +02:00
parent fcc799645f
commit b95f77224f
No known key found for this signature in database
GPG Key ID: AE53149BB0C45AF1

View File

@ -8,7 +8,7 @@ auto GetFrameFromId = hook::get_pattern<RwFrame*(RpClump*,int)>( "8B 4C 24 0C 89
RwFrame* CVehicleModelInfo::GetExtrasFrame( RpClump* clump )
{
RwFrame* frame;
if ( m_dwType == VEHICLE_AUTOMOBILE || m_dwType == VEHICLE_BIKE )
if ( m_dwType == VEHICLE_HELI || m_dwType == VEHICLE_BIKE )
{
frame = GetFrameFromId( clump, 1 );
if ( frame == nullptr )