summaryrefslogtreecommitdiff
path: root/src/systems/remove.rs
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2020-04-09 14:37:12 +0200
committertroido <troido@protonmail.com>2020-04-09 14:37:12 +0200
commit8dbe1f51ff1705f97a191197b3ee7cb66b682584 (patch)
tree90a3ed3ca56ee021aeb6198ac833da4e70270bb6 /src/systems/remove.rs
parent569da2b3f3e15b11be8f67ea4f81aaab4dc58049 (diff)
stricter about what to print
Diffstat (limited to 'src/systems/remove.rs')
-rw-r--r--src/systems/remove.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systems/remove.rs b/src/systems/remove.rs
index a228a32..9f38b3d 100644
--- a/src/systems/remove.rs
+++ b/src/systems/remove.rs
@@ -22,8 +22,8 @@ impl <'a> System<'a> for Remove {
fn run(&mut self, (entities, removals, positions, mut ground): Self::SystemData) {
for (ent, _) in (&*entities, &removals, ).join() {
- if let Err(msg) = entities.delete(ent){
- println!("{:?}", msg);
+ if let Err(err) = entities.delete(ent){
+ println!("error deleting entity: {:?}", err);
}
if let Some(position) = positions.get(ent) {
ground.remove(&position.pos, ent);