summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHercules.ws <dev@herc.ws>2018-08-27 01:15:29 +0200
committerHerculesWSAPI <dev@herc.ws>2018-08-27 01:15:29 +0200
commit5a998ca980198ed73bd2ac543ee31828693a9c51 (patch)
tree74cb81c726883188331c26b269ce5a04694d9e55
parent5bb417009a0e8d6f0ed05a4007ea0248f7cb4138 (diff)
downloadhercules-5a998ca980198ed73bd2ac543ee31828693a9c51.tar.gz
hercules-5a998ca980198ed73bd2ac543ee31828693a9c51.tar.bz2
hercules-5a998ca980198ed73bd2ac543ee31828693a9c51.tar.xz
hercules-5a998ca980198ed73bd2ac543ee31828693a9c51.zip
HPM Hooks Update
Signed-off-by: HerculesWSAPI <dev@herc.ws>
-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 cc093975f..52c7bb0f6 100644
--- a/src/plugins/HPMHooking/HPMHooking.Defs.inc
+++ b/src/plugins/HPMHooking/HPMHooking.Defs.inc
@@ -3510,8 +3510,8 @@ typedef int (*HPMHOOK_pre_intif_request_registry) (struct map_session_data **sd,
typedef int (*HPMHOOK_post_intif_request_registry) (int retVal___, struct map_session_data *sd, int flag);
typedef void (*HPMHOOK_pre_intif_request_account_storage) (const struct map_session_data **sd);
typedef void (*HPMHOOK_post_intif_request_account_storage) (const struct map_session_data *sd);
-typedef void (*HPMHOOK_pre_intif_send_account_storage) (const struct map_session_data **sd);
-typedef void (*HPMHOOK_post_intif_send_account_storage) (const struct map_session_data *sd);
+typedef void (*HPMHOOK_pre_intif_send_account_storage) (struct map_session_data **sd);
+typedef void (*HPMHOOK_post_intif_send_account_storage) (struct map_session_data *sd);
typedef int (*HPMHOOK_pre_intif_request_guild_storage) (int *account_id, int *guild_id);
typedef int (*HPMHOOK_post_intif_request_guild_storage) (int retVal___, int account_id, int guild_id);
typedef int (*HPMHOOK_pre_intif_send_guild_storage) (int *account_id, struct guild_storage **gstor);
diff --git a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
index 8ad18f843..5690e0735 100644
--- a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
@@ -35538,10 +35538,10 @@ void HP_intif_request_account_storage(const struct map_session_data *sd) {
}
return;
}
-void HP_intif_send_account_storage(const struct map_session_data *sd) {
+void HP_intif_send_account_storage(struct map_session_data *sd) {
int hIndex = 0;
if (HPMHooks.count.HP_intif_send_account_storage_pre > 0) {
- void (*preHookFunc) (const struct map_session_data **sd);
+ void (*preHookFunc) (struct map_session_data **sd);
*HPMforce_return = false;
for (hIndex = 0; hIndex < HPMHooks.count.HP_intif_send_account_storage_pre; hIndex++) {
preHookFunc = HPMHooks.list.HP_intif_send_account_storage_pre[hIndex].func;
@@ -35556,7 +35556,7 @@ void HP_intif_send_account_storage(const struct map_session_data *sd) {
HPMHooks.source.intif.send_account_storage(sd);
}
if (HPMHooks.count.HP_intif_send_account_storage_post > 0) {
- void (*postHookFunc) (const struct map_session_data *sd);
+ void (*postHookFunc) (struct map_session_data *sd);
for (hIndex = 0; hIndex < HPMHooks.count.HP_intif_send_account_storage_post; hIndex++) {
postHookFunc = HPMHooks.list.HP_intif_send_account_storage_post[hIndex].func;
postHookFunc(sd);