aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_inventoryaction.cpp
diff options
context:
space:
mode:
authorElias Fleckenstein <54945686+EliasFleckenstein03@users.noreply.github.com>2020-11-04 14:40:00 +0100
committerGitHub <noreply@github.com>2020-11-04 14:40:00 +0100
commitfc8c8f01ca15912b1db176fec473bcfb0333032f (patch)
tree08182e80b69d5352f81c6827d3caa4efe13e6f14 /src/script/lua_api/l_inventoryaction.cpp
parent61e2b3a33190d5979bc2e36f9734cebd18465f26 (diff)
parenta7dc1135e94bde5f8c3385d54388563eaffe7553 (diff)
downloaddragonfireclient-fc8c8f01ca15912b1db176fec473bcfb0333032f.tar.xz
Merge branch 'master' into master
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 &) {}
}