fix
This commit is contained in:
parent
c97f26b06e
commit
51eadd397c
@ -164,7 +164,7 @@ static int l_inventory_move_range(lua::State* L) {
|
||||
|
||||
auto invBid = lua::tointeger(L, 3);
|
||||
auto slotBegin = lua::isnoneornil(L, 4) ? -1 : lua::tointeger(L, 4);
|
||||
auto slotEnd = lua::isnoneornil(L, 5) ? -1 : lua::tointeger(L, 5);
|
||||
auto slotEnd = lua::isnoneornil(L, 5) ? -1 : lua::tointeger(L, 5) + 1;
|
||||
auto invB = get_inventory(invBid, 3);
|
||||
auto& slot = invA->getSlot(slotAid);
|
||||
if (slotBegin == -1) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user