mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-13 21:20:33 +00:00
fixes
This commit is contained in:
parent
0ccc70c843
commit
e473123a6a
2 changed files with 3 additions and 3 deletions
|
@ -136,7 +136,7 @@ void CPedAttractorManager::RemoveIceCreamVanEffects(C2dEffect* pEffect)
|
|||
return;
|
||||
for (std::vector<CVehicleToEffect>::const_iterator assoc = vVehicleToEffect.cbegin(); assoc != vVehicleToEffect.cend();) {
|
||||
if (assoc->GetVehicle() != pVehicle) {
|
||||
assoc++;
|
||||
++assoc;
|
||||
continue;
|
||||
}
|
||||
uint32 total = 0;
|
||||
|
@ -145,7 +145,7 @@ void CPedAttractorManager::RemoveIceCreamVanEffects(C2dEffect* pEffect)
|
|||
total++;
|
||||
}
|
||||
if (total > 0)
|
||||
assoc++;
|
||||
++assoc;
|
||||
else
|
||||
assoc = vVehicleToEffect.erase(assoc);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue