summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
diff options
context:
space:
mode:
authorHercules.ws <Hercules@efficiently.awesome>2015-06-19 15:30:39 +0200
committerHerculesWSAPI <Hercules@efficiently.awesome>2015-06-19 15:30:39 +0200
commitcbb4020de7aa75fe87b0c3f93819e6336b94c9e3 (patch)
treec585d250d24b18cfd227797bbd2e39c6888956ab /src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
parent9bc51d6b4ca04557b240640fb8d95a95081f504d (diff)
downloadhercules-cbb4020de7aa75fe87b0c3f93819e6336b94c9e3.tar.gz
hercules-cbb4020de7aa75fe87b0c3f93819e6336b94c9e3.tar.bz2
hercules-cbb4020de7aa75fe87b0c3f93819e6336b94c9e3.tar.xz
hercules-cbb4020de7aa75fe87b0c3f93819e6336b94c9e3.zip
HPM Hooks Update
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
Diffstat (limited to 'src/plugins/HPMHooking/HPMHooking_map.Hooks.inc')
-rw-r--r--src/plugins/HPMHooking/HPMHooking_map.Hooks.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
index eac60b8f4..c623747aa 100644
--- a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
@@ -12589,11 +12589,11 @@ void HP_clif_messageln(const int fd, const char *mes) {
}
return;
}
-void(*) bool HP_clif_process_message(struct map_session_data *sd, int format, char **name_, size_t *namelen_, char **message_, size_t *messagelen_) {
+bool HP_clif_process_message(struct map_session_data *sd, int format, char **name_, size_t *namelen_, char **message_, size_t *messagelen_) {
int hIndex = 0;
- void(*) bool retVal___ = NULL;
+ bool retVal___ = false;
if( HPMHooks.count.HP_clif_process_message_pre ) {
- void(*) bool (*preHookFunc) (struct map_session_data *sd, int *format, char **name_, size_t *namelen_, char **message_, size_t *messagelen_);
+ bool (*preHookFunc) (struct map_session_data *sd, int *format, char **name_, size_t *namelen_, char **message_, size_t *messagelen_);
*HPMforce_return = false;
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_process_message_pre; hIndex++ ) {
preHookFunc = HPMHooks.list.HP_clif_process_message_pre[hIndex].func;
@@ -12608,7 +12608,7 @@ void(*) bool HP_clif_process_message(struct map_session_data *sd, int format, ch
retVal___ = HPMHooks.source.clif.process_message(sd, format, name_, namelen_, message_, messagelen_);
}
if( HPMHooks.count.HP_clif_process_message_post ) {
- void(*) bool (*postHookFunc) (void(*) bool retVal___, struct map_session_data *sd, int *format, char **name_, size_t *namelen_, char **message_, size_t *messagelen_);
+ bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, int *format, char **name_, size_t *namelen_, char **message_, size_t *messagelen_);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_process_message_post; hIndex++ ) {
postHookFunc = HPMHooks.list.HP_clif_process_message_post[hIndex].func;
retVal___ = postHookFunc(retVal___, sd, &format, name_, namelen_, message_, messagelen_);