Skip to content

Commit 5670303

Browse files
committed
Fixed CloneRemoverExcludeModels
1 parent a168d29 commit 5670303

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

ModelVariations/ModelVariations.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -656,14 +656,13 @@ class ModelVariations {
656656
}
657657
}
658658

659-
if (!pedRemoved)
659+
if (!pedRemoved && !IdExists(cloneRemoverExclusions, ped->m_nModelIndex) && ped->m_nModelIndex > 0)
660660
{
661661
pedTimeSinceLastSpawned.insert({ ((cloneRemoverIncludeVariations == 1) ? getVariationOriginalModel(ped->m_nModelIndex) : ped->m_nModelIndex), clock() });
662662
for (CPed* ped2 : CPools::ms_pPedPool)
663663
if (ped2 != NULL && ped2 != ped && ((cloneRemoverIncludeVariations == 1) ?
664664
(getVariationOriginalModel(ped->m_nModelIndex) == getVariationOriginalModel(ped2->m_nModelIndex)) :
665-
(ped->m_nModelIndex == ped2->m_nModelIndex)) &&
666-
ped->m_nModelIndex == ped2->m_nModelIndex && ped2->m_nModelIndex > 0 && !IdExists(cloneRemoverExclusions, ped2->m_nModelIndex))
665+
(ped->m_nModelIndex == ped2->m_nModelIndex)) && ped->m_nModelIndex == ped2->m_nModelIndex)
667666
{
668667
if (ped->m_pVehicle != NULL && cloneRemoverVehicleOccupants == 1)
669668
{

0 commit comments

Comments
 (0)