diff options
| author | troido <troido@protonmail.com> | 2020-04-02 16:07:32 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-04-02 16:07:32 +0200 |
| commit | b597d2279db7beb0d619fac472481b7f707609c8 (patch) | |
| tree | 3d45ea9f45a8897a3aec5c30b16bb0db12b162b2 /src/systems/droploot.rs | |
| parent | 1e8fe74740fc4fb11b660415b2db182c6a63a3c2 (diff) | |
built doors
Diffstat (limited to 'src/systems/droploot.rs')
| -rw-r--r-- | src/systems/droploot.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systems/droploot.rs b/src/systems/droploot.rs index 1b8f824..5eff7f7 100644 --- a/src/systems/droploot.rs +++ b/src/systems/droploot.rs @@ -32,7 +32,7 @@ impl <'a> System<'a> for DropLoot{ for (template, chance) in &loot.loot { if *chance > rand::thread_rng().gen_range(0.0, 1.0) { // todo: better error handling - new.create(position.pos, template.clone()).unwrap(); + new.create(position.pos, &template).unwrap(); } } } |
