mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 12:50:00 +00:00
fix in ped attractor
This commit is contained in:
parent
c856d88691
commit
8d92a0681a
|
@ -135,8 +135,10 @@ void CPedAttractorManager::RemoveIceCreamVanEffects(C2dEffect* pEffect)
|
||||||
if (vVehicleToEffect.empty())
|
if (vVehicleToEffect.empty())
|
||||||
return;
|
return;
|
||||||
for (std::vector<CVehicleToEffect>::const_iterator assoc = vVehicleToEffect.cbegin(); assoc != vVehicleToEffect.cend();) {
|
for (std::vector<CVehicleToEffect>::const_iterator assoc = vVehicleToEffect.cbegin(); assoc != vVehicleToEffect.cend();) {
|
||||||
if (assoc->GetVehicle() != pVehicle)
|
if (assoc->GetVehicle() != pVehicle) {
|
||||||
return;
|
assoc++;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
uint32 total = 0;
|
uint32 total = 0;
|
||||||
for (uint32 j = 0; j < NUM_ATTRACTORS_FOR_ICECREAM_VAN; j++) {
|
for (uint32 j = 0; j < NUM_ATTRACTORS_FOR_ICECREAM_VAN; j++) {
|
||||||
if (FindAssociatedAttractor(assoc->GetEffect(j), vIceCreamAttractors))
|
if (FindAssociatedAttractor(assoc->GetEffect(j), vIceCreamAttractors))
|
||||||
|
|
Loading…
Reference in a new issue