summaryrefslogtreecommitdiffstats
path: root/src/peds/PedAttractor.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-11-02 22:07:25 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-11-02 22:07:25 +0100
commite473123a6aa3769b7aeef54526561c2f1ab32cc1 (patch)
tree83bad0fe952bfcbdda6d41fee30e1d725b884866 /src/peds/PedAttractor.cpp
parentembarassing (diff)
downloadre3-e473123a6aa3769b7aeef54526561c2f1ab32cc1.tar
re3-e473123a6aa3769b7aeef54526561c2f1ab32cc1.tar.gz
re3-e473123a6aa3769b7aeef54526561c2f1ab32cc1.tar.bz2
re3-e473123a6aa3769b7aeef54526561c2f1ab32cc1.tar.lz
re3-e473123a6aa3769b7aeef54526561c2f1ab32cc1.tar.xz
re3-e473123a6aa3769b7aeef54526561c2f1ab32cc1.tar.zst
re3-e473123a6aa3769b7aeef54526561c2f1ab32cc1.zip
Diffstat (limited to '')
-rw-r--r--src/peds/PedAttractor.cpp4
1 files changed, 2 insertions, 2 deletions
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<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);
}