correction Entree.add_structure, j'avais oublié d'incrémenter size lorsqu'une Structure est ajoutée.
This commit is contained in:
parent
f3491fb333
commit
2f6d4ea4e1
1 changed files with 1 additions and 0 deletions
|
@ -100,6 +100,7 @@ impl Entree {
|
||||||
|
|
||||||
pub fn add_structure(&mut self, structure: Structure) -> i8 {
|
pub fn add_structure(&mut self, structure: Structure) -> i8 {
|
||||||
self.inputs.push(structure);
|
self.inputs.push(structure);
|
||||||
|
self.size +=1;
|
||||||
0
|
0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue