mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
De-enumerized armor variants
This commit is contained in:
@ -204,7 +204,7 @@ impl Loadout {
|
||||
.iter()
|
||||
.flat_map(|armor| armor.as_ref())
|
||||
.filter_map(|item| {
|
||||
if let ItemKind::Armor(armor) = item.kind {
|
||||
if let ItemKind::Armor(armor) = &item.kind {
|
||||
Some(armor.get_protection())
|
||||
} else {
|
||||
None
|
||||
|
Reference in New Issue
Block a user