summaryrefslogtreecommitdiff
path: root/src/emap/skill.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-02 19:06:39 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-02 19:06:39 +0300
commit1fc6228436311da0d70f14176fe47f3e37f6faa6 (patch)
tree9434c90ab44ac55200daa199f524fa11f3168678 /src/emap/skill.c
parent00d1b8bf9fc3648730904b6f86696417f4445037 (diff)
downloadplugin-1fc6228436311da0d70f14176fe47f3e37f6faa6.tar.gz
plugin-1fc6228436311da0d70f14176fe47f3e37f6faa6.tar.bz2
plugin-1fc6228436311da0d70f14176fe47f3e37f6faa6.tar.xz
plugin-1fc6228436311da0d70f14176fe47f3e37f6faa6.zip
Update function hook prototypes for support new hercules.
Diffstat (limited to 'src/emap/skill.c')
-rw-r--r--src/emap/skill.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emap/skill.c b/src/emap/skill.c
index 87cefdf..435c3a7 100644
--- a/src/emap/skill.c
+++ b/src/emap/skill.c
@@ -20,8 +20,8 @@
int eskill_check_condition_castend_post(int retVal,
TBL_PC* sd,
- uint16 *skill_id,
- uint16 *skill_lv)
+ uint16 skill_id,
+ uint16 skill_lv)
{
if (retVal && sd)
{
@@ -35,8 +35,8 @@ int eskill_check_condition_castend_post(int retVal,
struct event_data* ev = node->data;
if (ev)
{
- pc->setreg(sd, script->add_str("@skillId"), *skill_id);
- pc->setreg(sd, script->add_str("@skillLv"), *skill_lv);
+ pc->setreg(sd, script->add_str("@skillId"), skill_id);
+ pc->setreg(sd, script->add_str("@skillLv"), skill_lv);
script->run(ev->nd->u.scr.script, ev->pos, sd->bl.id, ev->nd->bl.id);
}
node = node->next;