void free_mob_index( MOB_INDEX_DATA *pMob ) { MPROG_LIST *list, *mp_next; free_string( pMob->player_name ); free_string( pMob->short_descr ); free_string( pMob->long_descr ); free_string( pMob->description ); for( list = pMob->mprogs; list; list = mp_next ) { mp_next = list->next; free_mprog( pMob->mprogs ); } if( pMob->pShop ) { free_shop( pMob->pShop ); } pMob->next = mob_index_free; mob_index_free = pMob; return; }
void free_mob_index (MOB_INDEX_DATA * pMob) { free_string (pMob->player_name); free_string (pMob->short_descr); free_string (pMob->long_descr); free_string (pMob->description); free_mprog (pMob->mprogs); free_shop (pMob->pShop); pMob->next = mob_index_free; mob_index_free = pMob; return; }