Browse Source

oops forgot to handle missing specials

pbs
Andy Newjack 5 years ago
parent
commit
895891fabc
  1. 2
      src/entity/item/weapon.rs

2
src/entity/item/weapon.rs

@ -893,7 +893,7 @@ impl Weapon {
let mut result = [0u8; 16]; let mut result = [0u8; 16];
result[0..3].copy_from_slice(&self.weapon.value()); result[0..3].copy_from_slice(&self.weapon.value());
result[3] = self.grind; result[3] = self.grind;
result[4] = self.special.unwrap().value();
result[4] = self.special.unwrap_or(WeaponSpecial::None).value();
if self.tekked == false { if self.tekked == false {
result[4] += 0x80 result[4] += 0x80

Loading…
Cancel
Save