aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_inventoryaction.cpp
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2020-10-21 18:51:57 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2020-10-21 18:51:57 +0200
commitea88dde4be225d19c12bea4a581aa21f17237070 (patch)
tree3787863e03a7222b1c3fde0c37c2d85ae8821326 /src/script/lua_api/l_inventoryaction.cpp
parentf1ff05bf5932a7825509dbe896e60183a96a6d36 (diff)
downloaddragonfireclient-ea88dde4be225d19c12bea4a581aa21f17237070.tar.xz
Added Strip, AutoRefill, indexing for InventoryActions and Wield Index starts at 1 now
Diffstat (limited to 'src/script/lua_api/l_inventoryaction.cpp')
-rw-r--r--src/script/lua_api/l_inventoryaction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/lua_api/l_inventoryaction.cpp b/src/script/lua_api/l_inventoryaction.cpp
index 516d6d3b2..f3037ba83 100644
--- a/src/script/lua_api/l_inventoryaction.cpp
+++ b/src/script/lua_api/l_inventoryaction.cpp
@@ -133,7 +133,7 @@ void LuaInventoryAction::readFullInventoryLocationInto(lua_State *L, InventoryLo
loc->deSerialize(readParam<std::string>(L, 2));
std::string l = readParam<std::string>(L, 3);
*list = l;
- *index = luaL_checkinteger(L, 4);
+ *index = luaL_checkinteger(L, 4) - 1;
} catch (SerializationError &) {}
}