From c4f0b4fb6d18d355c94e1bb6b8eba708e88ab0a1 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/control/Script.cpp b/src/control/Script.cpp index e1e1fbc2..1b1b9045 100644 --- a/src/control/Script.cpp +++ b/src/control/Script.cpp @@ -2140,7 +2140,7 @@ void CMissionCleanup::Process() default: break; } - RemoveEntityFromList(i, m_sEntities[i].type); + RemoveEntityFromList(m_sEntities[i].id, m_sEntities[i].type); } for (int i = 1; i < NUMSTREAMINFO; i++) { if (CStreaming::IsScriptOwnedModel(i))