From e473123a6aa3769b7aeef54526561c2f1ab32cc1 Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Tue, 3 Nov 2020 00:07:25 +0300 Subject: fixes --- src/peds/PedAttractor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/peds') diff --git a/src/peds/PedAttractor.cpp b/src/peds/PedAttractor.cpp index 45bed947..05e72ed3 100644 --- a/src/peds/PedAttractor.cpp +++ b/src/peds/PedAttractor.cpp @@ -136,7 +136,7 @@ void CPedAttractorManager::RemoveIceCreamVanEffects(C2dEffect* pEffect) return; for (std::vector::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); } -- cgit v1.2.3