Add "soundlist" keyvalue for individual sound replacements.
This commit is contained in:
@@ -1255,7 +1255,13 @@ int mmDispatchSpawn( edict_t *pent )
|
||||
for (index = 0; index < MAX_MONSTER_ENTS; index++)
|
||||
{
|
||||
if (monsters[index].pMonster != NULL)
|
||||
{
|
||||
// free the soundlists first!
|
||||
if (monsters[index].pMonster->m_srSoundList != NULL)
|
||||
free(monsters[index].pMonster->m_srSoundList);
|
||||
|
||||
delete monsters[index].pMonster;
|
||||
}
|
||||
}
|
||||
|
||||
// free any allocated keyvalue memory
|
||||
|
||||
Reference in New Issue
Block a user