Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix itemstack:add item not working correct
  • Loading branch information
sapier authored and sapier committed May 25, 2013
1 parent ab43377 commit e464f19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script/lua_api/l_item.cpp
Expand Up @@ -227,7 +227,7 @@ int LuaItemStack::l_add_item(lua_State *L)
NO_MAP_LOCK_REQUIRED;
LuaItemStack *o = checkobject(L, 1);
ItemStack &item = o->m_stack;
ItemStack newitem = read_item(L,-2, STACK_TO_SERVER(L));
ItemStack newitem = read_item(L,-1, STACK_TO_SERVER(L));
ItemStack leftover = item.addItem(newitem, STACK_TO_SERVER(L)->idef());
create(L, leftover);
return 1;
Expand Down

0 comments on commit e464f19

Please sign in to comment.