From 8e6e46a919579b98962c2a0c770bda4f98323f46 Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Fri, 2 Jul 2021 00:18:38 +0300 Subject: Fix collision loading for mission entities --- src/collision/ColStore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) -- cgit v1.2.3