-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
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".
AtomECS/src/atom_sources/oven.rs
Line 212 in c4a0fa4
| let new_atom = entities.create(); |
AtomECS/src/atom_sources/oven.rs
Line 216 in c4a0fa4
| if theta > oven.max_theta { |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels