Description of the bug
The oven would "leak" entity if its max_theta is larger than zero.
Cause
An empty entity is created on line 212, which is before the line where whether the atom should be created is checked (line 216). If a non-zero max_theta is found, the omitted atoms will leave empty entities that are never deleted and thus causing entities to "leak".
|
let new_atom = entities.create(); |
|
if theta > oven.max_theta { |
Description of the bug
The oven would "leak" entity if its
max_thetais larger than zero.Cause
An empty entity is created on line 212, which is before the line where whether the atom should be created is checked (line 216). If a non-zero
max_thetais found, the omitted atoms will leave empty entities that are never deleted and thus causing entities to "leak".AtomECS/src/atom_sources/oven.rs
Line 212 in c4a0fa4
AtomECS/src/atom_sources/oven.rs
Line 216 in c4a0fa4