summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHercules.ws <Hercules@efficiently.awesome>2014-03-17 02:17:06 +0100
committerHerculesWSAPI <Hercules@efficiently.awesome>2014-03-17 02:17:06 +0100
commit649dc74e6ae7813dbd0a7ad1844278ee629e038c (patch)
tree990a7cabd0a169ec20593839f09051c96085477e
parentf3c079d3a6a7d31941d0f7d03e87a28e0b42bfe2 (diff)
downloadhercules-649dc74e6ae7813dbd0a7ad1844278ee629e038c.tar.gz
hercules-649dc74e6ae7813dbd0a7ad1844278ee629e038c.tar.bz2
hercules-649dc74e6ae7813dbd0a7ad1844278ee629e038c.tar.xz
hercules-649dc74e6ae7813dbd0a7ad1844278ee629e038c.zip
HPM Hooks Update
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
-rw-r--r--src/plugins/HPMHooking/HPMHooking.Hooks.inc13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking.Hooks.inc b/src/plugins/HPMHooking/HPMHooking.Hooks.inc
index b2fbb9518..396b241b0 100644
--- a/src/plugins/HPMHooking/HPMHooking.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking.Hooks.inc
@@ -35401,14 +35401,13 @@ struct mob_data* HP_map_id2boss(int id) {
}
return retVal___;
}
-void HP_map_reloadnpc(bool clear, , int extra_scripts_count) {
-/* Error: Unhandled var type 'char *const *extra_scripts' */
+void HP_map_reloadnpc(bool clear, const char *const *extra_scripts, int extra_scripts_count) {
int hIndex = 0;
if( HPMHooks.count.HP_map_reloadnpc_pre ) {
- void (*preHookFunc) (bool *clear, , int *extra_scripts_count);
+ void (*preHookFunc) (bool *clear, const char *const *extra_scripts, int *extra_scripts_count);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_reloadnpc_pre; hIndex++ ) {
preHookFunc = HPMHooks.list.HP_map_reloadnpc_pre[hIndex].func;
- preHookFunc(&clear, , &extra_scripts_count);
+ preHookFunc(&clear, extra_scripts, &extra_scripts_count);
}
if( *HPMforce_return ) {
*HPMforce_return = false;
@@ -35416,13 +35415,13 @@ void HP_map_reloadnpc(bool clear, , int extra_scripts_count) {
}
}
{
- HPMHooks.source.map.reloadnpc(clear, , extra_scripts_count);
+ HPMHooks.source.map.reloadnpc(clear, extra_scripts, extra_scripts_count);
}
if( HPMHooks.count.HP_map_reloadnpc_post ) {
- void (*postHookFunc) (bool *clear, , int *extra_scripts_count);
+ void (*postHookFunc) (bool *clear, const char *const *extra_scripts, int *extra_scripts_count);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_reloadnpc_post; hIndex++ ) {
postHookFunc = HPMHooks.list.HP_map_reloadnpc_post[hIndex].func;
- postHookFunc(&clear, , &extra_scripts_count);
+ postHookFunc(&clear, extra_scripts, &extra_scripts_count);
}
}
return;