fix warehouseGetEquipment

This commit is contained in:
wish
2023-12-13 11:50:29 +11:00
parent 7e34862e25
commit 345126ffcb
2 changed files with 1 additions and 5 deletions

View File

@@ -477,10 +477,7 @@ func warehouseGetEquipment(s *Session, index uint8) []mhfitem.MHFEquipment {
numStacks := box.ReadUint16()
box.ReadUint16() // Unused
for i := 0; i < int(numStacks); i++ {
temp := mhfitem.ReadWarehouseEquipment(box)
if !temp.Deleted {
equipment = append(equipment, temp)
}
equipment = append(equipment, mhfitem.ReadWarehouseEquipment(box))
}
}
return equipment