summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-09 15:26:00 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-10 22:44:01 +0300
commitcfd535c7f5b442ae3d96a192a2dbe8650cae99af (patch)
tree158feeb6ecbfcffdc766ec8ac1b2917383c744d3 /src/map/script.c
parent3742a813233edca6a59cc027209b8cd6bfd6b70b (diff)
downloadhercules-cfd535c7f5b442ae3d96a192a2dbe8650cae99af.tar.gz
hercules-cfd535c7f5b442ae3d96a192a2dbe8650cae99af.tar.bz2
hercules-cfd535c7f5b442ae3d96a192a2dbe8650cae99af.tar.xz
hercules-cfd535c7f5b442ae3d96a192a2dbe8650cae99af.zip
Fix interfaces methods usage.
In some places was used direct methods.
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 5e368e0ad..9ff1b20a7 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -140,7 +140,7 @@ static void script_dump_stack(struct script_state* st)
for( i = 0; i < st->stack->sp; ++i )
{
struct script_data* data = &st->stack->stack_data[i];
- ShowMessage("\t[%d] %s", i, script_op2name(data->type));
+ ShowMessage("\t[%d] %s", i, script->op2name(data->type));
switch( data->type )
{
case C_INT:
@@ -2865,7 +2865,7 @@ int set_reg(struct script_state* st, TBL_PC* sd, int64 num, const char* name, co
}
} else {
ShowError("script_set_reg: cannot write instance variable '%s', NPC not in a instance!\n", name);
- script_reportsrc(st);
+ script->reportsrc(st);
}
return 1;
default:
@@ -2931,7 +2931,7 @@ int set_reg(struct script_state* st, TBL_PC* sd, int64 num, const char* name, co
}
} else {
ShowError("script_set_reg: cannot write instance variable '%s', NPC not in a instance!\n", name);
- script_reportsrc(st);
+ script->reportsrc(st);
}
return 1;
default:
@@ -10201,7 +10201,7 @@ BUILDIN(sc_start) {
enum sc_type type;
int tick, val1, val2, val3, val4=0, rate, flag;
char start_type;
- const char* command = script_getfuncname(st);
+ const char* command = script->getfuncname(st);
if(strstr(command, "4"))
start_type = 4;