mission cleanup fix

This commit is contained in:
Nikolay Korolev 2021-01-23 23:17:41 +03:00
parent de32fbe75e
commit 4e477a17b2

View File

@ -1866,9 +1866,7 @@ void CMissionCleanup::Process()
default: default:
break; break;
} }
m_sEntities[i].id = 0; RemoveEntityFromList(m_sEntities[i].id, m_sEntities[i].type);
m_sEntities[i].type = CLEANUP_UNUSED;
m_nCount--;
} }
#ifdef SECUROM #ifdef SECUROM
if ((myrand() & 3) == 2){ if ((myrand() & 3) == 2){