diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-09-25 02:36:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-09-25 02:36:14 +0300 |
commit | d15e6bce81b6728f98f1bd4b33d8a10cc4a020e1 (patch) | |
tree | 5e1f8a8aac84cfc73d353fd56f5384d45a59787b /src/emap/script_buildins.c | |
parent | 505d310c38ab4c2ce80edb082a609959ee0ec5e6 (diff) | |
download | evol-hercules-d15e6bce81b6728f98f1bd4b33d8a10cc4a020e1.tar.gz evol-hercules-d15e6bce81b6728f98f1bd4b33d8a10cc4a020e1.tar.bz2 evol-hercules-d15e6bce81b6728f98f1bd4b33d8a10cc4a020e1.tar.xz evol-hercules-d15e6bce81b6728f98f1bd4b33d8a10cc4a020e1.zip |
Fix compilation after hercules update.
Diffstat (limited to 'src/emap/script_buildins.c')
-rw-r--r-- | src/emap/script_buildins.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/emap/script_buildins.c b/src/emap/script_buildins.c index 02b26cd..78b9ac6 100644 --- a/src/emap/script_buildins.c +++ b/src/emap/script_buildins.c @@ -11,6 +11,7 @@ #include "common/memmgr.h" #include "common/utils.h" #include "common/timer.h" +#include "map/achievement.h" #include "map/chat.h" #include "map/chrif.h" #include "map/instance.h" @@ -1158,7 +1159,7 @@ BUILDIN(successRefIndex) logs->pick_pc(sd, LOG_TYPE_SCRIPT, 1, &sd->status.inventory[n],sd->inventory_data[n]); clif->additem(sd, n, 1, 0); clif->misceffect(&sd->bl, 3); - achievement->validate_refine(sd, i, true); // Achievements [Smokexyz/Hercules] + achievement->validate_refine(sd, n, true); // Achievements [Smokexyz/Hercules] if (sd->status.inventory[n].refine == 10 && sd->status.inventory[n].card[0] == CARD0_FORGE && |