ent_next does not care what kind of entity it is. It just walks through the entity list and finds all entities. Maybe your problem has a different reason?