diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2021-01-23 21:17:41 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2021-01-23 21:17:41 +0100 |
commit | 4e477a17b2fe603a47956afade96cf0ef615f325 (patch) | |
tree | 9f9500de4c031ec88e0626341ab0fc6363d55af4 | |
parent | another backport (diff) | |
download | re3-4e477a17b2fe603a47956afade96cf0ef615f325.tar re3-4e477a17b2fe603a47956afade96cf0ef615f325.tar.gz re3-4e477a17b2fe603a47956afade96cf0ef615f325.tar.bz2 re3-4e477a17b2fe603a47956afade96cf0ef615f325.tar.lz re3-4e477a17b2fe603a47956afade96cf0ef615f325.tar.xz re3-4e477a17b2fe603a47956afade96cf0ef615f325.tar.zst re3-4e477a17b2fe603a47956afade96cf0ef615f325.zip |
Diffstat (limited to '')
-rw-r--r-- | src/control/Script.cpp | 4 |
1 files changed, 1 insertions, 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){ |