diff options
Diffstat (limited to 'src/systems/useitem.rs')
| -rw-r--r-- | src/systems/useitem.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systems/useitem.rs b/src/systems/useitem.rs index d96f6ef..8763843 100644 --- a/src/systems/useitem.rs +++ b/src/systems/useitem.rs @@ -48,7 +48,7 @@ impl <'a> System<'a> for Use { Build(template, required_flags, blocking_flags) => { let ground_flags = ground.flags_on(position.pos, &flags); if required_flags.is_subset(&ground_flags) && blocking_flags.is_disjoint(&ground_flags){ - new.create(position.pos, template.clone()).unwrap(); + new.create(position.pos, &template).unwrap(); inventory.items.remove(*rank); } } |
