GDScript supprime les objets supprimés du tableau

for object in array:
	if ! is_instance_valid(object):
		array.erase(object)
ProMikeSundays