src/dg_handler.c
void extract_script_mem(struct script_memory *sc)
{
  struct script_memory *next;
  while (sc) {
    next = sc->next;
    if (sc->cmd) free(sc->cmd);
    free(sc);
    sc = next;
  }
}
/* erase the script memory of a mob */
erase the script memory of a mob
erase the script memory of a mob
void extract_script_mem(struct script_memory *sc)
{
  struct script_memory *next;
  while (sc) {
    next = sc->next;
    if (sc->cmd) free(sc->cmd);
    free(sc);
    sc = next;
  }
}
void extract_script_mem ( struct script_memory * sc ) { struct script_memory * next ; while ( sc ) { next = sc -> next ; if ( sc -> cmd ) free ( sc -> cmd ) ; free ( sc ) ; sc = next ; } }
erase the script memory of a mob
erase the script memory of a mob