void EntityClassDoom3_clear(){ for ( EntityClasses::iterator i = g_EntityClassDoom3_classes.begin(); i != g_EntityClassDoom3_classes.end(); ++i ) { ( *i ).second->free( ( *i ).second ); } g_EntityClassDoom3_classes.clear(); }
void CleanEntityList(EntityClasses& entityClasses) { for(EntityClasses::iterator i = entityClasses.begin(); i != entityClasses.end(); ++i) { (*i).second->free((*i).second); } entityClasses.clear(); }