diff options
author | Sergeanur <s.anureev@yandex.ua> | 2019-10-21 15:09:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-21 15:09:44 +0200 |
commit | 4844b3a3f8037b379654bb8109050d0adbc94ae7 (patch) | |
tree | 4366aac26c53bebd0f98bc121b5f04b5cd750fe3 /src/control/CarAI.cpp | |
parent | Merge pull request #248 from Nmzik/master (diff) | |
parent | Some CPool and CPools funcs, restoring original logic of pool lookup loops (diff) | |
download | re3-4844b3a3f8037b379654bb8109050d0adbc94ae7.tar re3-4844b3a3f8037b379654bb8109050d0adbc94ae7.tar.gz re3-4844b3a3f8037b379654bb8109050d0adbc94ae7.tar.bz2 re3-4844b3a3f8037b379654bb8109050d0adbc94ae7.tar.lz re3-4844b3a3f8037b379654bb8109050d0adbc94ae7.tar.xz re3-4844b3a3f8037b379654bb8109050d0adbc94ae7.tar.zst re3-4844b3a3f8037b379654bb8109050d0adbc94ae7.zip |
Diffstat (limited to '')
-rw-r--r-- | src/control/CarAI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/CarAI.cpp b/src/control/CarAI.cpp index bb0c1ec3..b4dd8777 100644 --- a/src/control/CarAI.cpp +++ b/src/control/CarAI.cpp @@ -588,7 +588,7 @@ void CCarAI::MakeWayForCarWithSiren(CVehicle *pVehicle) CVector2D forward = pVehicle->GetMoveSpeed() / flatSpeed; float projection = flatSpeed * 45 + 20; int i = CPools::GetVehiclePool()->GetSize(); - while (i--) { + while (--i >= 0) { CVehicle* vehicle = CPools::GetVehiclePool()->GetSlot(i); if (!vehicle) continue; |