fixes missing borrow

This commit is contained in:
Llywelwyn 2023-10-05 04:38:22 +01:00
parent a9dd729a2b
commit bc4f960d88

View file

@ -126,7 +126,7 @@ pub fn record_event(event: EVENT) {
new_event = format!("Discovered {}", name);
}
EVENT::Identified(name) => {
new_event = format!("Identified {}", crate::gui::with_article(name));
new_event = format!("Identified {}", crate::gui::with_article(&name));
}
EVENT::PlayerDied(str) => {
// Generating the String is handled in the death effect, to avoid passing the ecs here.