Skip to content

Commit

Permalink
changed empty arrow slot id and empty bolt slot id to -1 instead of 0
Browse files Browse the repository at this point in the history
  • Loading branch information
clayamore committed Mar 23, 2024
1 parent 4537205 commit c96f79c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/save/save.rs
Original file line number Diff line number Diff line change
Expand Up @@ -545,14 +545,14 @@ pub mod save {
slot.equip_data.arrows[weapon_slot_index] = equip_index;
slot.chr_asm.arrows[weapon_slot_index] = if item_id == 0 {u32::MAX} else {item_id};
slot.chr_asm2.arrows[weapon_slot_index] = gaitem_handle;
slot.equipped_items.arrows[weapon_slot_index] = item_id;
slot.equipped_items.arrows[weapon_slot_index] = if item_id == 0 {u32::MAX} else {item_id};
},
SaveType::PlayStation(ps_save) => {
let slot = &mut ps_save.save_slots[slot_index];
slot.equip_data.arrows[weapon_slot_index] = equip_index;
slot.chr_asm.arrows[weapon_slot_index] = if item_id == 0 {u32::MAX} else {item_id};
slot.chr_asm2.arrows[weapon_slot_index] = gaitem_handle;
slot.equipped_items.arrows[weapon_slot_index] = item_id;
slot.equipped_items.arrows[weapon_slot_index] = if item_id == 0 {u32::MAX} else {item_id};
},
}
}
Expand All @@ -565,14 +565,14 @@ pub mod save {
slot.equip_data.bolts[weapon_slot_index] = equip_index;
slot.chr_asm.bolts[weapon_slot_index] = if item_id == 0 {u32::MAX} else {item_id};
slot.chr_asm2.bolts[weapon_slot_index] = gaitem_handle;
slot.equipped_items.bolts[weapon_slot_index] = item_id;
slot.equipped_items.bolts[weapon_slot_index] = if item_id == 0 {u32::MAX} else {item_id};
},
SaveType::PlayStation(ps_save) => {
let slot = &mut ps_save.save_slots[slot_index];
slot.equip_data.bolts[weapon_slot_index] = equip_index;
slot.chr_asm.bolts[weapon_slot_index] = if item_id == 0 {u32::MAX} else {item_id};
slot.chr_asm2.bolts[weapon_slot_index] = gaitem_handle;
slot.equipped_items.bolts[weapon_slot_index] = item_id;
slot.equipped_items.bolts[weapon_slot_index] = if item_id == 0 {u32::MAX} else {item_id};
},
}
}
Expand Down

0 comments on commit c96f79c

Please sign in to comment.