summaryrefslogtreecommitdiff
path: root/src/item.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/item.rs')
-rw-r--r--src/item.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/item.rs b/src/item.rs
index 0e8661a..88fd583 100644
--- a/src/item.rs
+++ b/src/item.rs
@@ -73,7 +73,7 @@ mod tests {
fn equip_from_json() {
assert_eq!(
ItemAction::from_json(&json!(["equip", {"slot": "hand", "stats": {"strength": 10}}])),
- Some(ItemAction::Equip(Equippable {slot: Slot::Hand, stats: hashmap!(Stat::Strength => 10)}))
+ Some(ItemAction::Equip(Equippable {slot: Slot::Hand, stats: hashmap!(Stat::Strength => 10), sprite: Option::None}))
);
assert_eq!(
ItemAction::from_json(&json!(["equip", {"slot": "hand", "stats": {"attack": 50}}])),