diff options
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){ |