diff options
| author | troido <troido@protonmail.com> | 2020-02-18 01:11:49 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-02-18 01:11:49 +0100 |
| commit | c71ecb48fa4368035a852e2d06869a21382a6876 (patch) | |
| tree | 8d5a598fedf4e42bd6d8d1b0d476301dede2f20c /src/systems/take.rs | |
| parent | c921686355c86afb5bf47e4b6c696057ede01b1f (diff) | |
Players are now saved/loaded too
Diffstat (limited to 'src/systems/take.rs')
| -rw-r--r-- | src/systems/take.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systems/take.rs b/src/systems/take.rs index affa3d1..bf0f8e8 100644 --- a/src/systems/take.rs +++ b/src/systems/take.rs @@ -53,7 +53,7 @@ impl <'a> System<'a> for Take { } Control::Drop(_rank) => { if let Some(item) = inventory.items.pop() { - new.templates.push((position.pos, item.ent)); + let _ = new.create(position.pos, item.ent); } } _ => {} |
