summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2020-08-14 09:02:40 -0400
committergumi <git@gumi.ca>2020-08-14 09:02:40 -0400
commit230e8f89768f8aa3495b5cdd678821e96b3a1277 (patch)
tree84499938d27adf0234ae52cb796de9b25f17a9e0 /src
parentad236eedb24396e5620f9c28a264126979532200 (diff)
downloadevol-hercules-230e8f89768f8aa3495b5cdd678821e96b3a1277.tar.gz
evol-hercules-230e8f89768f8aa3495b5cdd678821e96b3a1277.tar.bz2
evol-hercules-230e8f89768f8aa3495b5cdd678821e96b3a1277.tar.xz
evol-hercules-230e8f89768f8aa3495b5cdd678821e96b3a1277.zip
fixup for getcraftrecipe
Diffstat (limited to 'src')
-rw-r--r--src/emap/script_buildins.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emap/script_buildins.c b/src/emap/script_buildins.c
index 3e7227f..d55a242 100644
--- a/src/emap/script_buildins.c
+++ b/src/emap/script_buildins.c
@@ -1780,8 +1780,8 @@ BUILDIN(getCraftRecipe)
for (int i = 0; i < craft_inventory_size; i++) {
struct item_pair *entryItem = &entry_inventory->items[i];
- int index4 = start4 + size;
- int index5 = start5 + size;
+ uint32 index4 = start4 + size;
+ uint32 index5 = start5 + size;
script->set_reg(st, NULL, reference_uid(id4, index4), name4, (const void *)h64BPTRSIZE(entryItem->amount), ref4);
script->set_reg(st, NULL, reference_uid(id5, index5), name5, (const void *)h64BPTRSIZE(entryItem->index), ref5);