diff --git a/chapter-10-ranged/src/inventory_system.rs b/chapter-10-ranged/src/inventory_system.rs index fccb9ed3..1d454b31 100644 --- a/chapter-10-ranged/src/inventory_system.rs +++ b/chapter-10-ranged/src/inventory_system.rs @@ -140,6 +140,7 @@ impl<'a> System<'a> for ItemUseSystem { let item_name = names.get(useitem.item).unwrap(); gamelog.entries.push(format!("You use {} on {}, confusing them.", item_name.name, mob_name.name)); } + used_item = true; } } }