summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2019-04-07 20:20:52 +0200
committerGitHub <noreply@github.com>2019-04-07 20:20:52 +0200
commited5a86ed44b19d1e4c203f78c7bf2551442d2319 (patch)
treef75fee0084fcf607156608b479804053f2c5e46d /src
parent4c7057a31717f223637d671096a5b065befc0e4c (diff)
parent6f7ad82c7a804a224fd8ca405a0ebc4b739dc3e4 (diff)
downloadhercules-ed5a86ed44b19d1e4c203f78c7bf2551442d2319.tar.gz
hercules-ed5a86ed44b19d1e4c203f78c7bf2551442d2319.tar.bz2
hercules-ed5a86ed44b19d1e4c203f78c7bf2551442d2319.tar.xz
hercules-ed5a86ed44b19d1e4c203f78c7bf2551442d2319.zip
Merge pull request #2401 from dastgirp/feature/getinventorylist
Expanded getinventorylist:
Diffstat (limited to 'src')
-rw-r--r--src/map/script.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c
index bba559df8..348efae6f 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -14857,6 +14857,7 @@ static BUILDIN(getinventorylist)
}
pc->setreg(sd,reference_uid(script->add_variable("@inventorylist_expire"), j),sd->status.inventory[i].expire_time);
pc->setreg(sd,reference_uid(script->add_variable("@inventorylist_bound"), j),sd->status.inventory[i].bound);
+ pc->setreg(sd, reference_uid(script->add_variable("@inventorylist_idx"), j), i);
j++;
}
}