diff options
| author | troido <troido@protonmail.com> | 2020-04-04 23:48:07 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-04-04 23:48:07 +0200 |
| commit | 068f98cec100772defce8ba966e5b917558b191c (patch) | |
| tree | 80124cf89852dbedec9322258af36167cc99277b /src/systems/remove.rs | |
| parent | 2cc5b468cfd4c28bf1ad17ef1b3600c3d42f8b83 (diff) | |
draw the room after new entities have been added
Diffstat (limited to 'src/systems/remove.rs')
| -rw-r--r-- | src/systems/remove.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systems/remove.rs b/src/systems/remove.rs index b73a2fb..a228a32 100644 --- a/src/systems/remove.rs +++ b/src/systems/remove.rs @@ -26,7 +26,7 @@ impl <'a> System<'a> for Remove { println!("{:?}", msg); } if let Some(position) = positions.get(ent) { - ground.cells.get_mut(&position.pos).unwrap().remove(&ent); + ground.remove(&position.pos, ent); } } } |
