summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorHercules.ws <dev@herc.ws>2018-06-18 20:41:34 +0200
committerHerculesWSAPI <dev@herc.ws>2018-06-18 20:41:34 +0200
commit450c2df98e73b096c7b79b35bd1d3b75706e66d9 (patch)
tree712fbcba31c92fdfe07534fea0bea3b7f8463792 /src/plugins
parent1f6dff9f8938c46292778e972171c523b9846abe (diff)
downloadhercules-450c2df98e73b096c7b79b35bd1d3b75706e66d9.tar.gz
hercules-450c2df98e73b096c7b79b35bd1d3b75706e66d9.tar.bz2
hercules-450c2df98e73b096c7b79b35bd1d3b75706e66d9.tar.xz
hercules-450c2df98e73b096c7b79b35bd1d3b75706e66d9.zip
HPM Hooks Update
Signed-off-by: HerculesWSAPI <dev@herc.ws>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/HPMHooking/HPMHooking.Defs.inc4
-rw-r--r--src/plugins/HPMHooking/HPMHooking_map.Hooks.inc6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking.Defs.inc b/src/plugins/HPMHooking/HPMHooking.Defs.inc
index 8f4f181fb..5126822af 100644
--- a/src/plugins/HPMHooking/HPMHooking.Defs.inc
+++ b/src/plugins/HPMHooking/HPMHooking.Defs.inc
@@ -2448,8 +2448,8 @@ typedef void (*HPMHOOK_pre_clif_pReqStyleChange) (int *fd, struct map_session_da
typedef void (*HPMHOOK_post_clif_pReqStyleChange) (int fd, struct map_session_data *sd);
typedef void (*HPMHOOK_pre_clif_cz_req_style_change_sub) (struct map_session_data **sd, int *type, int16 *idx, bool *isitem);
typedef void (*HPMHOOK_post_clif_cz_req_style_change_sub) (struct map_session_data *sd, int type, int16 idx, bool isitem);
-typedef void (*HPMHOOK_pre_clif_style_change_response) (struct map_session_data **sd, int8 *flag);
-typedef void (*HPMHOOK_post_clif_style_change_response) (struct map_session_data *sd, int8 flag);
+typedef void (*HPMHOOK_pre_clif_style_change_response) (struct map_session_data **sd, enum stylist_shop *flag);
+typedef void (*HPMHOOK_post_clif_style_change_response) (struct map_session_data *sd, enum stylist_shop flag);
#endif // MAP_CLIF_H
#ifdef COMMON_CORE_H /* cmdline */
typedef void (*HPMHOOK_pre_cmdline_init) (void);
diff --git a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
index d81042493..02da2a4dd 100644
--- a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
@@ -26623,10 +26623,10 @@ void HP_clif_cz_req_style_change_sub(struct map_session_data *sd, int type, int1
}
return;
}
-void HP_clif_style_change_response(struct map_session_data *sd, int8 flag) {
+void HP_clif_style_change_response(struct map_session_data *sd, enum stylist_shop flag) {
int hIndex = 0;
if (HPMHooks.count.HP_clif_style_change_response_pre > 0) {
- void (*preHookFunc) (struct map_session_data **sd, int8 *flag);
+ void (*preHookFunc) (struct map_session_data **sd, enum stylist_shop *flag);
*HPMforce_return = false;
for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_style_change_response_pre; hIndex++) {
preHookFunc = HPMHooks.list.HP_clif_style_change_response_pre[hIndex].func;
@@ -26641,7 +26641,7 @@ void HP_clif_style_change_response(struct map_session_data *sd, int8 flag) {
HPMHooks.source.clif.style_change_response(sd, flag);
}
if (HPMHooks.count.HP_clif_style_change_response_post > 0) {
- void (*postHookFunc) (struct map_session_data *sd, int8 flag);
+ void (*postHookFunc) (struct map_session_data *sd, enum stylist_shop flag);
for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_style_change_response_post; hIndex++) {
postHookFunc = HPMHooks.list.HP_clif_style_change_response_post[hIndex].func;
postHookFunc(sd, flag);