From 0e034272965bc466e5b6ea7bbad95ccced182dfa Mon Sep 17 00:00:00 2001 From: Mats391 Date: Tue, 30 Dec 2025 17:28:51 +0100 Subject: [PATCH] Convert to 0 based index --- nampower/item_scripts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nampower/item_scripts.cpp b/nampower/item_scripts.cpp index babd952..858d6ef 100644 --- a/nampower/item_scripts.cpp +++ b/nampower/item_scripts.cpp @@ -850,7 +850,7 @@ namespace Nampower { return 0; } - uint64_t containerGuid = getContainerGuid(bagIndex); + uint64_t containerGuid = getContainerGuid(bagIndex-1); if (containerGuid == 0) { lua_pushnil(luaState); return 1;