diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-09 23:14:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-15 11:47:30 +0300 |
commit | 49219fa80a9d6010003b59556d09ad80a9cd0f0b (patch) | |
tree | 8720d9382b7b204cfb75686622fc6ba935a4e406 | |
parent | 58d85d09c066805e87d22ce940c8163de4087f21 (diff) | |
download | hercules-49219fa80a9d6010003b59556d09ad80a9cd0f0b.tar.gz hercules-49219fa80a9d6010003b59556d09ad80a9cd0f0b.tar.bz2 hercules-49219fa80a9d6010003b59556d09ad80a9cd0f0b.tar.xz hercules-49219fa80a9d6010003b59556d09ad80a9cd0f0b.zip |
Fix mapif interface.
-rw-r--r-- | src/char/mapif.h | 2 | ||||
-rw-r--r-- | src/plugins/HPMHooking/HPMHooking_char.Hooks.inc | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/char/mapif.h b/src/char/mapif.h index 6774db5e5..dcb60d547 100644 --- a/src/char/mapif.h +++ b/src/char/mapif.h @@ -187,7 +187,7 @@ struct mapif_interface { int (*parse_WisToGM) (int fd); int (*parse_Registry) (int fd); int (*parse_RegistryRequest) (int fd); - void (*namechange_ack) (int fd, int account_id, int char_id, int type, int flag, const char *const name); + void (*namechange_ack) (int fd, int account_id, int char_id, int type, int flag, const char *name); int (*parse_NameChangeRequest) (int fd); } mapif_s; diff --git a/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc index 2820c7154..8a775ccfd 100644 --- a/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc +++ b/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc @@ -11506,10 +11506,10 @@ int HP_mapif_parse_RegistryRequest(int fd) { } return retVal___; } -void HP_mapif_namechange_ack(int fd, int account_id, int char_id, int type, int flag, const char *constname) { +void HP_mapif_namechange_ack(int fd, int account_id, int char_id, int type, int flag, const char *name) { int hIndex = 0; if( HPMHooks.count.HP_mapif_namechange_ack_pre ) { - void (*preHookFunc) (int *fd, int *account_id, int *char_id, int *type, int *flag, const char *constname); + void (*preHookFunc) (int *fd, int *account_id, int *char_id, int *type, int *flag, const char *name); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_namechange_ack_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_mapif_namechange_ack_pre[hIndex].func; @@ -11524,7 +11524,7 @@ void HP_mapif_namechange_ack(int fd, int account_id, int char_id, int type, int HPMHooks.source.mapif.namechange_ack(fd, account_id, char_id, type, flag, name); } if( HPMHooks.count.HP_mapif_namechange_ack_post ) { - void (*postHookFunc) (int *fd, int *account_id, int *char_id, int *type, int *flag, const char *constname); + void (*postHookFunc) (int *fd, int *account_id, int *char_id, int *type, int *flag, const char *name); for(hIndex = 0; hIndex < HPMHooks.count.HP_mapif_namechange_ack_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_mapif_namechange_ack_post[hIndex].func; postHookFunc(&fd, &account_id, &char_id, &type, &flag, name); |