diff options
author | Haruna <haru@dotalux.com> | 2014-11-10 21:09:46 +0100 |
---|---|---|
committer | Haruna <haru@dotalux.com> | 2014-11-10 21:09:46 +0100 |
commit | 82ca427389450aabec616a55b1a5ed519bd44d8e (patch) | |
tree | 6c004ef9edd56f6ac039df26342810ac21de3bdb /src/map/script.c | |
parent | c1e1099c701de325a076172bcadf544e5b3000c9 (diff) | |
parent | cfd535c7f5b442ae3d96a192a2dbe8650cae99af (diff) | |
download | hercules-82ca427389450aabec616a55b1a5ed519bd44d8e.tar.gz hercules-82ca427389450aabec616a55b1a5ed519bd44d8e.tar.bz2 hercules-82ca427389450aabec616a55b1a5ed519bd44d8e.tar.xz hercules-82ca427389450aabec616a55b1a5ed519bd44d8e.zip |
Merge pull request #386 from 4144/fixplugins
Fix interfaces methods usage.
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 8 |
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; |