summaryrefslogtreecommitdiff
path: root/src/map/npc_chat.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-03-22 21:03:19 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-03-22 21:03:19 +0000
commit162af4caa481eef2529ccdc1299d9578539143c9 (patch)
tree26fbac5a3aa31aa02096d567534fbed35dda8c6b /src/map/npc_chat.c
parentfad0a74cd53f827e4c006b497b658baca2065a3d (diff)
downloadhercules-162af4caa481eef2529ccdc1299d9578539143c9.tar.gz
hercules-162af4caa481eef2529ccdc1299d9578539143c9.tar.bz2
hercules-162af4caa481eef2529ccdc1299d9578539143c9.tar.xz
hercules-162af4caa481eef2529ccdc1299d9578539143c9.zip
Some generic typo fixes (src and npc)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10054 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc_chat.c')
-rw-r--r--src/map/npc_chat.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/map/npc_chat.c b/src/map/npc_chat.c
index 9cee26f8e..bd39a588c 100644
--- a/src/map/npc_chat.c
+++ b/src/map/npc_chat.c
@@ -478,9 +478,9 @@ int mob_chat_sub(struct block_list *bl, va_list ap){
// Various script builtins used to support these functions
int buildin_defpattern(struct script_state *st) {
- int setid=conv_num(st,& (st->stack->stack_data[st->start+2]));
- const char *pattern=conv_str(st,& (st->stack->stack_data[st->start+3]));
- const char *label=conv_str(st,& (st->stack->stack_data[st->start+4]));
+ int setid=conv_num(st, script_getdata(st,2));
+ const char *pattern=conv_str(st, script_getdata(st,3));
+ const char *label=conv_str(st, script_getdata(st,4));
struct npc_data *nd=(struct npc_data *)map_id2bl(st->oid);
npc_chat_def_pattern(nd, setid, pattern, label);
@@ -489,7 +489,7 @@ int buildin_defpattern(struct script_state *st) {
}
int buildin_activatepset(struct script_state *st) {
- int setid=conv_num(st,& (st->stack->stack_data[st->start+2]));
+ int setid=conv_num(st, script_getdata(st,2));
struct npc_data *nd=(struct npc_data *)map_id2bl(st->oid);
activate_pcreset(nd, setid);
@@ -497,7 +497,7 @@ int buildin_activatepset(struct script_state *st) {
return 0;
}
int buildin_deactivatepset(struct script_state *st) {
- int setid=conv_num(st,& (st->stack->stack_data[st->start+2]));
+ int setid=conv_num(st, script_getdata(st,2));
struct npc_data *nd=(struct npc_data *)map_id2bl(st->oid);
deactivate_pcreset(nd, setid);
@@ -505,7 +505,7 @@ int buildin_deactivatepset(struct script_state *st) {
return 0;
}
int buildin_deletepset(struct script_state *st) {
- int setid=conv_num(st,& (st->stack->stack_data[st->start+2]));
+ int setid=conv_num(st, script_getdata(st,2));
struct npc_data *nd=(struct npc_data *)map_id2bl(st->oid);
delete_pcreset(nd, setid);