From 4e477a17b2fe603a47956afade96cf0ef615f325 Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Sat, 23 Jan 2021 23:17:41 +0300 Subject: [PATCH] mission cleanup fix --- src/control/Script.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/control/Script.cpp b/src/control/Script.cpp index b9097b9f..a160fbc1 100644 --- a/src/control/Script.cpp +++ b/src/control/Script.cpp @@ -1866,9 +1866,7 @@ void CMissionCleanup::Process() default: break; } - m_sEntities[i].id = 0; - m_sEntities[i].type = CLEANUP_UNUSED; - m_nCount--; + RemoveEntityFromList(m_sEntities[i].id, m_sEntities[i].type); } #ifdef SECUROM if ((myrand() & 3) == 2){