diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-11-02 22:07:25 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-11-02 22:07:25 +0100 |
commit | e473123a6aa3769b7aeef54526561c2f1ab32cc1 (patch) | |
tree | 83bad0fe952bfcbdda6d41fee30e1d725b884866 /src/peds/PedAttractor.cpp | |
parent | embarassing (diff) | |
download | re3-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.cpp | 4 |
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); } |