summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHaruna <haru@dotalux.com>2014-12-04 00:16:42 +0100
committerHaruna <haru@dotalux.com>2014-12-04 00:16:42 +0100
commit3378fa7502f8504bf0566d9082b60e4cd7817798 (patch)
tree8677feb1604610ae9b0497660fd9afb41255432c /src
parentd4e0689858b294260c610e77c27812797bbf26c0 (diff)
parent4d47b9b9a36c05744401df58efb76f1bd501a77f (diff)
downloadhercules-3378fa7502f8504bf0566d9082b60e4cd7817798.tar.gz
hercules-3378fa7502f8504bf0566d9082b60e4cd7817798.tar.bz2
hercules-3378fa7502f8504bf0566d9082b60e4cd7817798.tar.xz
hercules-3378fa7502f8504bf0566d9082b60e4cd7817798.zip
Merge pull request #393 from 4144/validateinterfaces
Improve validateinterfaces.py and replace some direct methods usage
Diffstat (limited to 'src')
-rw-r--r--src/map/script.c2
-rw-r--r--src/map/unit.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 6037c61fa..e04ba6f32 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -155,7 +155,7 @@ static void script_dump_stack(struct script_state* st)
break;
case C_NAME:
- ShowMessage(" \"%s\" (id=%d ref=%p subtype=%s)\n", reference_getname(data), data->u.num, data->ref, script_op2name(script->str_data[data->u.num].type));
+ ShowMessage(" \"%s\" (id=%d ref=%p subtype=%s)\n", reference_getname(data), data->u.num, data->ref, script->op2name(script->str_data[data->u.num].type));
break;
case C_RETINFO:
diff --git a/src/map/unit.c b/src/map/unit.c
index 3962e771e..c78919f52 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -2323,7 +2323,7 @@ int unit_remove_map(struct block_list *bl, clr_type clrtype, const char* file, i
//Clear target even if there is no timer
if (ud->target || ud->attacktimer != INVALID_TIMER)
- unit_stop_attack(bl);
+ unit->stop_attack(bl);
//Clear stepaction even if there is no timer
if (ud->stepaction || ud->steptimer != INVALID_TIMER)