summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-08 18:24:10 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-08 18:24:10 +0300
commit537b2bb3510f52eb9ccdee4f98e6061b5878bff0 (patch)
treedeb9ab96f897bb3a77455ad8ece4c64cb2554fb1 /src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
parent2053a2d8ff9e822ed61fac8e6fd12513ded633bd (diff)
downloadhercules-537b2bb3510f52eb9ccdee4f98e6061b5878bff0.tar.gz
hercules-537b2bb3510f52eb9ccdee4f98e6061b5878bff0.tar.bz2
hercules-537b2bb3510f52eb9ccdee4f98e6061b5878bff0.tar.xz
hercules-537b2bb3510f52eb9ccdee4f98e6061b5878bff0.zip
Fix hpm issues after rodex commit.
Diffstat (limited to 'src/plugins/HPMHooking/HPMHooking_char.Hooks.inc')
-rw-r--r--src/plugins/HPMHooking/HPMHooking_char.Hooks.inc14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
index b727d208b..a372f83b3 100644
--- a/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
@@ -14751,16 +14751,14 @@ int HP_mapif_parse_rodex_checkname(int fd) {
}
return retVal___;
}
-void HP_mapif_rodex_checkname(int fd, int reqchar_id, int target_char_id, short target_class, int target_level, ) {
-/* Error: Unexpected character '+' */
-/* Error: Unhandled var type 'char name[(23+1)]' */
+void HP_mapif_rodex_checkname(int fd, int reqchar_id, int target_char_id, short target_class, int target_level, char *name) {
int hIndex = 0;
if (HPMHooks.count.HP_mapif_rodex_checkname_pre > 0) {
- void (*preHookFunc) (int *fd, int *reqchar_id, int *target_char_id, short *target_class, int *target_level, );
+ void (*preHookFunc) (int *fd, int *reqchar_id, int *target_char_id, short *target_class, int *target_level, char **name);
*HPMforce_return = false;
for (hIndex = 0; hIndex < HPMHooks.count.HP_mapif_rodex_checkname_pre; hIndex++) {
preHookFunc = HPMHooks.list.HP_mapif_rodex_checkname_pre[hIndex].func;
- preHookFunc(&fd, &reqchar_id, &target_char_id, &target_class, &target_level, );
+ preHookFunc(&fd, &reqchar_id, &target_char_id, &target_class, &target_level, &name);
}
if (*HPMforce_return) {
*HPMforce_return = false;
@@ -14768,13 +14766,13 @@ void HP_mapif_rodex_checkname(int fd, int reqchar_id, int target_char_id, short
}
}
{
- HPMHooks.source.mapif.rodex_checkname(fd, reqchar_id, target_char_id, target_class, target_level, );
+ HPMHooks.source.mapif.rodex_checkname(fd, reqchar_id, target_char_id, target_class, target_level, name);
}
if (HPMHooks.count.HP_mapif_rodex_checkname_post > 0) {
- void (*postHookFunc) (int fd, int reqchar_id, int target_char_id, short target_class, int target_level, );
+ void (*postHookFunc) (int fd, int reqchar_id, int target_char_id, short target_class, int target_level, char *name);
for (hIndex = 0; hIndex < HPMHooks.count.HP_mapif_rodex_checkname_post; hIndex++) {
postHookFunc = HPMHooks.list.HP_mapif_rodex_checkname_post[hIndex].func;
- postHookFunc(fd, reqchar_id, target_char_id, target_class, target_level, );
+ postHookFunc(fd, reqchar_id, target_char_id, target_class, target_level, name);
}
}
return;