Skip to content

Commit e464f19

Browse files
sapiersapier
sapier
authored and
sapier
committedMay 25, 2013
Fix itemstack:add item not working correct
1 parent ab43377 commit e464f19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/script/lua_api/l_item.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ int LuaItemStack::l_add_item(lua_State *L)
227227
NO_MAP_LOCK_REQUIRED;
228228
LuaItemStack *o = checkobject(L, 1);
229229
ItemStack &item = o->m_stack;
230-
ItemStack newitem = read_item(L,-2, STACK_TO_SERVER(L));
230+
ItemStack newitem = read_item(L,-1, STACK_TO_SERVER(L));
231231
ItemStack leftover = item.addItem(newitem, STACK_TO_SERVER(L)->idef());
232232
create(L, leftover);
233233
return 1;

0 commit comments

Comments
 (0)
Please sign in to comment.