Fixed a heap corruption.

This commit is contained in:
Giegue
2023-04-30 11:32:12 -03:00
parent efd801bdea
commit c782c2aaf5

View File

@@ -1259,6 +1259,7 @@ int mmDispatchSpawn( edict_t *pent )
// free the soundlists first! // free the soundlists first!
if (monsters[index].pMonster->m_srSoundList != NULL) if (monsters[index].pMonster->m_srSoundList != NULL)
free(monsters[index].pMonster->m_srSoundList); free(monsters[index].pMonster->m_srSoundList);
monsters[index].pMonster->m_srSoundList = NULL;
delete monsters[index].pMonster; delete monsters[index].pMonster;
} }