diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-07-02 00:18:38 +0300 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-07-02 00:18:38 +0300 |
commit | 8e6e46a919579b98962c2a0c770bda4f98323f46 (patch) | |
tree | 3b94530b28d1e616e760dd391ef161479de34360 /src | |
parent | 65219365db5129d37bdd3be95e45ef5d4db8bc51 (diff) |
Fix collision loading for mission entities
Diffstat (limited to 'src')
-rw-r--r-- | src/collision/ColStore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/collision/ColStore.cpp b/src/collision/ColStore.cpp index f1e695fe..c74bf5ba 100644 --- a/src/collision/ColStore.cpp +++ b/src/collision/ColStore.cpp @@ -186,7 +186,7 @@ CColStore::LoadCollision(const CVector2D &pos) }else{ for (int j = 0; j < MAX_CLEANUP; j++) { CPhysical* pEntity = nil; - cleanup_entity_struct* pCleanup = &CTheScripts::MissionCleanUp.m_sEntities[i]; + cleanup_entity_struct* pCleanup = &CTheScripts::MissionCleanUp.m_sEntities[j]; if (pCleanup->type == CLEANUP_CAR) { pEntity = CPools::GetVehiclePool()->GetAt(pCleanup->id); if (!pEntity || pEntity->GetStatus() == STATUS_WRECKED) |