Skip to content

Commit f51d3c9

Browse files
committed
fixed typo in error message
1 parent 760c41e commit f51d3c9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

equipment/equipment.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ftype.base.fields.equip = {
2222
assert(equippable[bag], 'Cannot equip from this bag (bag = ' .. bag .. ')')
2323
assert(item.id ~= 0, 'Cannot equip from an empty bag slot (bag = ' .. bag .. ', index = ' .. index .. ')')
2424
assert(item.status == 0, 'Cannot equip an item with this status (status = ' .. item.status .. ')')
25-
assert(bit.band(bit.lshift(1, slot), item.item.slots) ~= 0, 'Cannot equip that item in this slot (slot = ' .. slot .. 'item.id = ' .. item.id .. ')')
25+
assert(bit.band(bit.lshift(1, slot), item.item.slots) ~= 0, 'Cannot equip that item in this slot (slot = ' .. slot .. ', item.id = ' .. item.id .. ')')
2626

2727
packets.outgoing[0x050]:inject({bag_index = index, slot_id = slot, bag_id = bag})
2828
end
@@ -62,7 +62,7 @@ equipment.equip = function(_, slot_items)
6262
if bag ~= 0 or index ~= 0 then
6363
assert(equippable[bag], 'Cannot equip from this bag (bag = ' .. bag .. ')')
6464
assert(item.id ~= 0, 'Cannot equip from an empty bag slot (bag = ' .. bag .. ', index = ' .. index .. ')')
65-
assert(bit.band(bit.lshift(1, i), item.item.slots) ~= 0, 'Cannot equip that item in this slot (slot = ' .. i .. 'item.id = ' .. item.id .. ')')
65+
assert(bit.band(bit.lshift(1, i), item.item.slots) ~= 0, 'Cannot equip that item in this slot (slot = ' .. i .. ', item.id = ' .. item.id .. ')')
6666
end
6767
items[count] = {bag_index = index, slot_id = i, bag_id = bag}
6868
count = count + 1

0 commit comments

Comments
 (0)