summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-10-08 01:09:22 +0200
committerHaru <haru@dotalux.com>2013-10-08 01:12:13 +0200
commitd26927e22ae84208f871749e926d8972907ff757 (patch)
treeda5e419e45ebe1ce1f2045472db302b9374c0f95 /src/plugins
parentbbaf8692374a82323858c4468f345d03cd05216d (diff)
downloadhercules-d26927e22ae84208f871749e926d8972907ff757.tar.gz
hercules-d26927e22ae84208f871749e926d8972907ff757.tar.bz2
hercules-d26927e22ae84208f871749e926d8972907ff757.tar.xz
hercules-d26927e22ae84208f871749e926d8972907ff757.zip
Small tweaks to the HPM Hook handlers (improved retVal initializations)
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/HPMHooking/HPMHooking.Hooks.inc3675
1 files changed, 1225 insertions, 2450 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking.Hooks.inc b/src/plugins/HPMHooking/HPMHooking.Hooks.inc
index 5915412d1..998840f17 100644
--- a/src/plugins/HPMHooking/HPMHooking.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking.Hooks.inc
@@ -51,8 +51,7 @@ void HP_atcommand_final(void) {
}
bool HP_atcommand_parse(const int fd, struct map_session_data *sd, const char *message, int type) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_atcommand_parse_pre ) {
bool (*preHookFunc) (const int *fd, struct map_session_data *sd, const char *message, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_parse_pre; hIndex++ ) {
@@ -78,8 +77,7 @@ bool HP_atcommand_parse(const int fd, struct map_session_data *sd, const char *m
}
bool HP_atcommand_create(char *name, AtCommandFunc func) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_atcommand_create_pre ) {
bool (*preHookFunc) (char *name, AtCommandFunc *func);
for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_create_pre; hIndex++ ) {
@@ -105,8 +103,7 @@ bool HP_atcommand_create(char *name, AtCommandFunc func) {
}
bool HP_atcommand_can_use(struct map_session_data *sd, const char *command) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_atcommand_can_use_pre ) {
bool (*preHookFunc) (struct map_session_data *sd, const char *command);
for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_can_use_pre; hIndex++ ) {
@@ -132,8 +129,7 @@ bool HP_atcommand_can_use(struct map_session_data *sd, const char *command) {
}
bool HP_atcommand_can_use2(struct map_session_data *sd, const char *command, AtCommandType type) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_atcommand_can_use2_pre ) {
bool (*preHookFunc) (struct map_session_data *sd, const char *command, AtCommandType *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_can_use2_pre; hIndex++ ) {
@@ -210,8 +206,7 @@ AtCommandInfo* HP_atcommand_exists(const char *name) {
}
int HP_atcommand_msg_read(const char *cfgName) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_atcommand_msg_read_pre ) {
int (*preHookFunc) (const char *cfgName);
for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_msg_read_pre; hIndex++ ) {
@@ -390,8 +385,7 @@ void HP_atcommand_config_read(const char *config_filename) {
}
int HP_atcommand_stopattack(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_atcommand_stopattack_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_stopattack_pre; hIndex++ ) {
@@ -423,8 +417,7 @@ int HP_atcommand_stopattack(struct block_list *bl, va_list ap) {
}
int HP_atcommand_pvpoff_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_atcommand_pvpoff_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_pvpoff_sub_pre; hIndex++ ) {
@@ -456,8 +449,7 @@ int HP_atcommand_pvpoff_sub(struct block_list *bl, va_list ap) {
}
int HP_atcommand_pvpon_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_atcommand_pvpon_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_pvpon_sub_pre; hIndex++ ) {
@@ -489,8 +481,7 @@ int HP_atcommand_pvpon_sub(struct block_list *bl, va_list ap) {
}
int HP_atcommand_atkillmonster_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_atcommand_atkillmonster_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_atkillmonster_sub_pre; hIndex++ ) {
@@ -572,8 +563,7 @@ void HP_atcommand_get_jail_time(int jailtime, int *year, int *month, int *day, i
}
int HP_atcommand_cleanfloor_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_atcommand_cleanfloor_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_cleanfloor_sub_pre; hIndex++ ) {
@@ -605,8 +595,7 @@ int HP_atcommand_cleanfloor_sub(struct block_list *bl, va_list ap) {
}
int HP_atcommand_mutearea_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_atcommand_mutearea_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_mutearea_sub_pre; hIndex++ ) {
@@ -688,8 +677,7 @@ void HP_atcommand_cmd_db_clear(void) {
}
int HP_atcommand_cmd_db_clear_sub(DBKey key, DBData *data, va_list args) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_atcommand_cmd_db_clear_sub_pre ) {
int (*preHookFunc) (DBKey *key, DBData *data, va_list args);
for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_cmd_db_clear_sub_pre; hIndex++ ) {
@@ -849,8 +837,7 @@ struct Damage HP_battle_calc_attack(int attack_type, struct block_list *bl, stru
}
int64 HP_battle_calc_damage(struct block_list *src, struct block_list *bl, struct Damage *d, int64 damage, uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int64 retVal___;
- memset(&retVal___, '\0', sizeof(int64));
+ int64 retVal___ = 0;
if( HPMHooks.count.HP_battle_calc_damage_pre ) {
int64 (*preHookFunc) (struct block_list *src, struct block_list *bl, struct Damage *d, int64 *damage, uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_damage_pre; hIndex++ ) {
@@ -876,8 +863,7 @@ int64 HP_battle_calc_damage(struct block_list *src, struct block_list *bl, struc
}
int64 HP_battle_calc_gvg_damage(struct block_list *src, struct block_list *bl, int64 damage, int div_, uint16 skill_id, uint16 skill_lv, int flag) {
int hIndex = 0;
- int64 retVal___;
- memset(&retVal___, '\0', sizeof(int64));
+ int64 retVal___ = 0;
if( HPMHooks.count.HP_battle_calc_gvg_damage_pre ) {
int64 (*preHookFunc) (struct block_list *src, struct block_list *bl, int64 *damage, int *div_, uint16 *skill_id, uint16 *skill_lv, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_gvg_damage_pre; hIndex++ ) {
@@ -903,8 +889,7 @@ int64 HP_battle_calc_gvg_damage(struct block_list *src, struct block_list *bl, i
}
int64 HP_battle_calc_bg_damage(struct block_list *src, struct block_list *bl, int64 damage, int div_, uint16 skill_id, uint16 skill_lv, int flag) {
int hIndex = 0;
- int64 retVal___;
- memset(&retVal___, '\0', sizeof(int64));
+ int64 retVal___ = 0;
if( HPMHooks.count.HP_battle_calc_bg_damage_pre ) {
int64 (*preHookFunc) (struct block_list *src, struct block_list *bl, int64 *damage, int *div_, uint16 *skill_id, uint16 *skill_lv, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_bg_damage_pre; hIndex++ ) {
@@ -930,8 +915,7 @@ int64 HP_battle_calc_bg_damage(struct block_list *src, struct block_list *bl, in
}
enum damage_lv HP_battle_weapon_attack(struct block_list *bl, struct block_list *target, unsigned int tick, int flag) {
int hIndex = 0;
- enum damage_lv retVal___;
- memset(&retVal___, '\0', sizeof(enum damage_lv));
+ enum damage_lv retVal___ = ATK_NONE;
if( HPMHooks.count.HP_battle_weapon_attack_pre ) {
enum damage_lv (*preHookFunc) (struct block_list *bl, struct block_list *target, unsigned int *tick, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_weapon_attack_pre; hIndex++ ) {
@@ -984,8 +968,7 @@ struct Damage HP_battle_calc_weapon_attack(struct block_list *src, struct block_
}
int HP_battle_delay_damage(unsigned int tick, int amotion, struct block_list *src, struct block_list *target, int attack_type, uint16 skill_id, uint16 skill_lv, int64 damage, enum damage_lv dmg_lv, int ddelay, bool additional_effects) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_battle_delay_damage_pre ) {
int (*preHookFunc) (unsigned int *tick, int *amotion, struct block_list *src, struct block_list *target, int *attack_type, uint16 *skill_id, uint16 *skill_lv, int64 *damage, enum damage_lv *dmg_lv, int *ddelay, bool *additional_effects);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_delay_damage_pre; hIndex++ ) {
@@ -1036,8 +1019,7 @@ void HP_battle_drain(struct map_session_data *sd, struct block_list *tbl, int64
}
int64 HP_battle_calc_return_damage(struct block_list *bl, struct block_list *src, int64 *p1, int flag, uint16 skill_id, int *rdelay) {
int hIndex = 0;
- int64 retVal___;
- memset(&retVal___, '\0', sizeof(int64));
+ int64 retVal___ = 0;
if( HPMHooks.count.HP_battle_calc_return_damage_pre ) {
int64 (*preHookFunc) (struct block_list *bl, struct block_list *src, int64 *p1, int *flag, uint16 *skill_id, int *rdelay);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_return_damage_pre; hIndex++ ) {
@@ -1063,8 +1045,7 @@ int64 HP_battle_calc_return_damage(struct block_list *bl, struct block_list *src
}
int HP_battle_attr_ratio(int atk_elem, int def_type, int def_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_battle_attr_ratio_pre ) {
int (*preHookFunc) (int *atk_elem, int *def_type, int *def_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_attr_ratio_pre; hIndex++ ) {
@@ -1090,8 +1071,7 @@ int HP_battle_attr_ratio(int atk_elem, int def_type, int def_lv) {
}
int64 HP_battle_attr_fix(struct block_list *src, struct block_list *target, int64 damage, int atk_elem, int def_type, int def_lv) {
int hIndex = 0;
- int64 retVal___;
- memset(&retVal___, '\0', sizeof(int64));
+ int64 retVal___ = 0;
if( HPMHooks.count.HP_battle_attr_fix_pre ) {
int64 (*preHookFunc) (struct block_list *src, struct block_list *target, int64 *damage, int *atk_elem, int *def_type, int *def_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_attr_fix_pre; hIndex++ ) {
@@ -1117,8 +1097,7 @@ int64 HP_battle_attr_fix(struct block_list *src, struct block_list *target, int6
}
int64 HP_battle_calc_cardfix(int attack_type, struct block_list *src, struct block_list *target, int nk, int s_ele, int s_ele_, int64 damage, int left, int flag) {
int hIndex = 0;
- int64 retVal___;
- memset(&retVal___, '\0', sizeof(int64));
+ int64 retVal___ = 0;
if( HPMHooks.count.HP_battle_calc_cardfix_pre ) {
int64 (*preHookFunc) (int *attack_type, struct block_list *src, struct block_list *target, int *nk, int *s_ele, int *s_ele_, int64 *damage, int *left, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_cardfix_pre; hIndex++ ) {
@@ -1144,8 +1123,7 @@ int64 HP_battle_calc_cardfix(int attack_type, struct block_list *src, struct blo
}
int64 HP_battle_calc_elefix(struct block_list *src, struct block_list *target, uint16 skill_id, uint16 skill_lv, int64 damage, int nk, int n_ele, int s_ele, int s_ele_, bool left, int flag) {
int hIndex = 0;
- int64 retVal___;
- memset(&retVal___, '\0', sizeof(int64));
+ int64 retVal___ = 0;
if( HPMHooks.count.HP_battle_calc_elefix_pre ) {
int64 (*preHookFunc) (struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int64 *damage, int *nk, int *n_ele, int *s_ele, int *s_ele_, bool *left, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_elefix_pre; hIndex++ ) {
@@ -1171,8 +1149,7 @@ int64 HP_battle_calc_elefix(struct block_list *src, struct block_list *target, u
}
int64 HP_battle_calc_masteryfix(struct block_list *src, struct block_list *target, uint16 skill_id, uint16 skill_lv, int64 damage, int div, bool left, bool weapon) {
int hIndex = 0;
- int64 retVal___;
- memset(&retVal___, '\0', sizeof(int64));
+ int64 retVal___ = 0;
if( HPMHooks.count.HP_battle_calc_masteryfix_pre ) {
int64 (*preHookFunc) (struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int64 *damage, int *div, bool *left, bool *weapon);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_masteryfix_pre; hIndex++ ) {
@@ -1198,8 +1175,7 @@ int64 HP_battle_calc_masteryfix(struct block_list *src, struct block_list *targe
}
int HP_battle_calc_skillratio(int attack_type, struct block_list *src, struct block_list *target, uint16 skill_id, uint16 skill_lv, int skillratio, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_battle_calc_skillratio_pre ) {
int (*preHookFunc) (int *attack_type, struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int *skillratio, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_skillratio_pre; hIndex++ ) {
@@ -1225,8 +1201,7 @@ int HP_battle_calc_skillratio(int attack_type, struct block_list *src, struct bl
}
int64 HP_battle_calc_sizefix(struct map_session_data *sd, int64 damage, int type, int size, bool ignore) {
int hIndex = 0;
- int64 retVal___;
- memset(&retVal___, '\0', sizeof(int64));
+ int64 retVal___ = 0;
if( HPMHooks.count.HP_battle_calc_sizefix_pre ) {
int64 (*preHookFunc) (struct map_session_data *sd, int64 *damage, int *type, int *size, bool *ignore);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_sizefix_pre; hIndex++ ) {
@@ -1252,8 +1227,7 @@ int64 HP_battle_calc_sizefix(struct map_session_data *sd, int64 damage, int type
}
int64 HP_battle_calc_weapon_damage(struct block_list *src, struct block_list *bl, uint16 skill_id, uint16 skill_lv, struct weapon_atk *watk, int nk, bool n_ele, short s_ele, short s_ele_, int size, int type, int flag, int flag2) {
int hIndex = 0;
- int64 retVal___;
- memset(&retVal___, '\0', sizeof(int64));
+ int64 retVal___ = 0;
if( HPMHooks.count.HP_battle_calc_weapon_damage_pre ) {
int64 (*preHookFunc) (struct block_list *src, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, struct weapon_atk *watk, int *nk, bool *n_ele, short *s_ele, short *s_ele_, int *size, int *type, int *flag, int *flag2);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_weapon_damage_pre; hIndex++ ) {
@@ -1279,8 +1253,7 @@ int64 HP_battle_calc_weapon_damage(struct block_list *src, struct block_list *bl
}
int64 HP_battle_calc_defense(int attack_type, struct block_list *src, struct block_list *target, uint16 skill_id, uint16 skill_lv, int64 damage, int flag, int pdef) {
int hIndex = 0;
- int64 retVal___;
- memset(&retVal___, '\0', sizeof(int64));
+ int64 retVal___ = 0;
if( HPMHooks.count.HP_battle_calc_defense_pre ) {
int64 (*preHookFunc) (int *attack_type, struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, int64 *damage, int *flag, int *pdef);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_defense_pre; hIndex++ ) {
@@ -1384,8 +1357,7 @@ struct block_list* HP_battle_get_enemy(struct block_list *target, int type, int
}
int HP_battle_get_target(struct block_list *bl) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_battle_get_target_pre ) {
int (*preHookFunc) (struct block_list *bl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_get_target_pre; hIndex++ ) {
@@ -1411,8 +1383,7 @@ int HP_battle_get_target(struct block_list *bl) {
}
int HP_battle_get_current_skill(struct block_list *bl) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_battle_get_current_skill_pre ) {
int (*preHookFunc) (struct block_list *bl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_get_current_skill_pre; hIndex++ ) {
@@ -1438,8 +1409,7 @@ int HP_battle_get_current_skill(struct block_list *bl) {
}
int HP_battle_check_undead(int race, int element) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_battle_check_undead_pre ) {
int (*preHookFunc) (int *race, int *element);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_check_undead_pre; hIndex++ ) {
@@ -1465,8 +1435,7 @@ int HP_battle_check_undead(int race, int element) {
}
int HP_battle_check_target(struct block_list *src, struct block_list *target, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_battle_check_target_pre ) {
int (*preHookFunc) (struct block_list *src, struct block_list *target, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_check_target_pre; hIndex++ ) {
@@ -1492,8 +1461,7 @@ int HP_battle_check_target(struct block_list *src, struct block_list *target, in
}
bool HP_battle_check_range(struct block_list *src, struct block_list *bl, int range) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_battle_check_range_pre ) {
bool (*preHookFunc) (struct block_list *src, struct block_list *bl, int *range);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_check_range_pre; hIndex++ ) {
@@ -1544,8 +1512,7 @@ void HP_battle_consume_ammo(struct map_session_data *sd, int skill_id, int lv) {
}
int HP_battle_get_targeted_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_battle_get_targeted_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_get_targeted_sub_pre; hIndex++ ) {
@@ -1577,8 +1544,7 @@ int HP_battle_get_targeted_sub(struct block_list *bl, va_list ap) {
}
int HP_battle_get_enemy_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_battle_get_enemy_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_get_enemy_sub_pre; hIndex++ ) {
@@ -1610,8 +1576,7 @@ int HP_battle_get_enemy_sub(struct block_list *bl, va_list ap) {
}
int HP_battle_get_enemy_area_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_battle_get_enemy_area_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_get_enemy_area_sub_pre; hIndex++ ) {
@@ -1643,8 +1608,7 @@ int HP_battle_get_enemy_area_sub(struct block_list *bl, va_list ap) {
}
int HP_battle_delay_damage_sub(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_battle_delay_damage_sub_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_delay_damage_sub_pre; hIndex++ ) {
@@ -1670,8 +1634,7 @@ int HP_battle_delay_damage_sub(int tid, unsigned int tick, int id, intptr_t data
}
int HP_battle_blewcount_bonus(struct map_session_data *sd, uint16 skill_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_battle_blewcount_bonus_pre ) {
int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_blewcount_bonus_pre; hIndex++ ) {
@@ -1697,8 +1660,7 @@ int HP_battle_blewcount_bonus(struct map_session_data *sd, uint16 skill_id) {
}
int HP_battle_range_type(struct block_list *src, struct block_list *target, uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_battle_range_type_pre ) {
int (*preHookFunc) (struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_range_type_pre; hIndex++ ) {
@@ -1724,8 +1686,7 @@ int HP_battle_range_type(struct block_list *src, struct block_list *target, uint
}
int64 HP_battle_calc_base_damage(struct block_list *src, struct block_list *bl, uint16 skill_id, uint16 skill_lv, int nk, bool n_ele, short s_ele, short s_ele_, int type, int flag, int flag2) {
int hIndex = 0;
- int64 retVal___;
- memset(&retVal___, '\0', sizeof(int64));
+ int64 retVal___ = 0;
if( HPMHooks.count.HP_battle_calc_base_damage_pre ) {
int64 (*preHookFunc) (struct block_list *src, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int *nk, bool *n_ele, short *s_ele, short *s_ele_, int *type, int *flag, int *flag2);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_base_damage_pre; hIndex++ ) {
@@ -1751,8 +1712,7 @@ int64 HP_battle_calc_base_damage(struct block_list *src, struct block_list *bl,
}
int64 HP_battle_calc_base_damage2(struct status_data *st, struct weapon_atk *wa, struct status_change *sc, unsigned short t_size, struct map_session_data *sd, int flag) {
int hIndex = 0;
- int64 retVal___;
- memset(&retVal___, '\0', sizeof(int64));
+ int64 retVal___ = 0;
if( HPMHooks.count.HP_battle_calc_base_damage2_pre ) {
int64 (*preHookFunc) (struct status_data *st, struct weapon_atk *wa, struct status_change *sc, unsigned short *t_size, struct map_session_data *sd, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_base_damage2_pre; hIndex++ ) {
@@ -1832,8 +1792,7 @@ struct Damage HP_battle_calc_magic_attack(struct block_list *src, struct block_l
}
int HP_battle_adjust_skill_damage(int m, unsigned short skill_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_battle_adjust_skill_damage_pre ) {
int (*preHookFunc) (int *m, unsigned short *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_adjust_skill_damage_pre; hIndex++ ) {
@@ -1859,8 +1818,7 @@ int HP_battle_adjust_skill_damage(int m, unsigned short skill_id) {
}
int64 HP_battle_add_mastery(struct map_session_data *sd, struct block_list *target, int64 dmg, int type) {
int hIndex = 0;
- int64 retVal___;
- memset(&retVal___, '\0', sizeof(int64));
+ int64 retVal___ = 0;
if( HPMHooks.count.HP_battle_add_mastery_pre ) {
int64 (*preHookFunc) (struct map_session_data *sd, struct block_list *target, int64 *dmg, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_add_mastery_pre; hIndex++ ) {
@@ -1886,8 +1844,7 @@ int64 HP_battle_add_mastery(struct map_session_data *sd, struct block_list *targ
}
int HP_battle_calc_drain(int64 damage, int rate, int per) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_battle_calc_drain_pre ) {
int (*preHookFunc) (int64 *damage, int *rate, int *per);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_calc_drain_pre; hIndex++ ) {
@@ -1913,8 +1870,7 @@ int HP_battle_calc_drain(int64 damage, int rate, int per) {
}
int HP_battle_config_read(const char *cfgName) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_battle_config_read_pre ) {
int (*preHookFunc) (const char *cfgName);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_config_read_pre; hIndex++ ) {
@@ -1965,8 +1921,7 @@ void HP_battle_config_set_defaults(void) {
}
int HP_battle_config_set_value(const char *w1, const char *w2) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_battle_config_set_value_pre ) {
int (*preHookFunc) (const char *w1, const char *w2);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_config_set_value_pre; hIndex++ ) {
@@ -1992,8 +1947,7 @@ int HP_battle_config_set_value(const char *w1, const char *w2) {
}
int HP_battle_config_get_value(const char *w1) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_battle_config_get_value_pre ) {
int (*preHookFunc) (const char *w1);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_config_get_value_pre; hIndex++ ) {
@@ -2070,8 +2024,7 @@ struct block_list* HP_battle_get_enemy_area(struct block_list *src, int x, int y
}
int HP_battle_damage_area(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_battle_damage_area_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_damage_area_pre; hIndex++ ) {
@@ -2205,8 +2158,7 @@ void HP_bg_queue_add(struct map_session_data *sd, struct bg_arena *arena, enum b
}
enum BATTLEGROUNDS_QUEUE_ACK HP_bg_can_queue(struct map_session_data *sd, struct bg_arena *arena, enum bg_queue_types type) {
int hIndex = 0;
- enum BATTLEGROUNDS_QUEUE_ACK retVal___;
- memset(&retVal___, '\0', sizeof(enum BATTLEGROUNDS_QUEUE_ACK));
+ enum BATTLEGROUNDS_QUEUE_ACK retVal___ = BGQA_SUCCESS;
if( HPMHooks.count.HP_bg_can_queue_pre ) {
enum BATTLEGROUNDS_QUEUE_ACK (*preHookFunc) (struct map_session_data *sd, struct bg_arena *arena, enum bg_queue_types *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_can_queue_pre; hIndex++ ) {
@@ -2232,8 +2184,7 @@ enum BATTLEGROUNDS_QUEUE_ACK HP_bg_can_queue(struct map_session_data *sd, struct
}
int HP_bg_id2pos(int queue_id, int account_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_bg_id2pos_pre ) {
int (*preHookFunc) (int *queue_id, int *account_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_id2pos_pre; hIndex++ ) {
@@ -2309,8 +2260,7 @@ void HP_bg_begin(struct bg_arena *arena) {
}
int HP_bg_begin_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_bg_begin_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_begin_timer_pre; hIndex++ ) {
@@ -2361,8 +2311,7 @@ void HP_bg_queue_pregame(struct bg_arena *arena) {
}
int HP_bg_fillup_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_bg_fillup_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_fillup_timer_pre; hIndex++ ) {
@@ -2515,8 +2464,7 @@ struct map_session_data* HP_bg_getavailablesd(struct battleground_data *bgd) {
}
int HP_bg_team_delete(int bg_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_bg_team_delete_pre ) {
int (*preHookFunc) (int *bg_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_team_delete_pre; hIndex++ ) {
@@ -2542,8 +2490,7 @@ int HP_bg_team_delete(int bg_id) {
}
int HP_bg_team_warp(int bg_id, unsigned short mapindex, short x, short y) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_bg_team_warp_pre ) {
int (*preHookFunc) (int *bg_id, unsigned short *mapindex, short *x, short *y);
for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_team_warp_pre; hIndex++ ) {
@@ -2569,8 +2516,7 @@ int HP_bg_team_warp(int bg_id, unsigned short mapindex, short x, short y) {
}
int HP_bg_send_dot_remove(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_bg_send_dot_remove_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_send_dot_remove_pre; hIndex++ ) {
@@ -2596,8 +2542,7 @@ int HP_bg_send_dot_remove(struct map_session_data *sd) {
}
int HP_bg_team_join(int bg_id, struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_bg_team_join_pre ) {
int (*preHookFunc) (int *bg_id, struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_team_join_pre; hIndex++ ) {
@@ -2623,8 +2568,7 @@ int HP_bg_team_join(int bg_id, struct map_session_data *sd) {
}
int HP_bg_team_leave(struct map_session_data *sd, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_bg_team_leave_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_team_leave_pre; hIndex++ ) {
@@ -2650,8 +2594,7 @@ int HP_bg_team_leave(struct map_session_data *sd, int flag) {
}
int HP_bg_member_respawn(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_bg_member_respawn_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_member_respawn_pre; hIndex++ ) {
@@ -2677,8 +2620,7 @@ int HP_bg_member_respawn(struct map_session_data *sd) {
}
int HP_bg_create(unsigned short mapindex, short rx, short ry, const char *ev, const char *dev) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_bg_create_pre ) {
int (*preHookFunc) (unsigned short *mapindex, short *rx, short *ry, const char *ev, const char *dev);
for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_create_pre; hIndex++ ) {
@@ -2704,8 +2646,7 @@ int HP_bg_create(unsigned short mapindex, short rx, short ry, const char *ev, co
}
int HP_bg_team_get_id(struct block_list *bl) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_bg_team_get_id_pre ) {
int (*preHookFunc) (struct block_list *bl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_team_get_id_pre; hIndex++ ) {
@@ -2731,8 +2672,7 @@ int HP_bg_team_get_id(struct block_list *bl) {
}
int HP_bg_send_message(struct map_session_data *sd, const char *mes, int len) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_bg_send_message_pre ) {
int (*preHookFunc) (struct map_session_data *sd, const char *mes, int *len);
for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_send_message_pre; hIndex++ ) {
@@ -2758,8 +2698,7 @@ int HP_bg_send_message(struct map_session_data *sd, const char *mes, int len) {
}
int HP_bg_send_xy_timer_sub(DBKey key, DBData *data, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_bg_send_xy_timer_sub_pre ) {
int (*preHookFunc) (DBKey *key, DBData *data, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_send_xy_timer_sub_pre; hIndex++ ) {
@@ -2791,8 +2730,7 @@ int HP_bg_send_xy_timer_sub(DBKey key, DBData *data, va_list ap) {
}
int HP_bg_send_xy_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_bg_send_xy_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_bg_send_xy_timer_pre; hIndex++ ) {
@@ -2844,8 +2782,7 @@ void HP_bg_config_read(void) {
/* buyingstore */
bool HP_buyingstore_setup(struct map_session_data *sd, unsigned char slots) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_buyingstore_setup_pre ) {
bool (*preHookFunc) (struct map_session_data *sd, unsigned char *slots);
for(hIndex = 0; hIndex < HPMHooks.count.HP_buyingstore_setup_pre; hIndex++ ) {
@@ -2971,8 +2908,7 @@ void HP_buyingstore_trade(struct map_session_data *sd, int account_id, unsigned
}
bool HP_buyingstore_search(struct map_session_data *sd, unsigned short nameid) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_buyingstore_search_pre ) {
bool (*preHookFunc) (struct map_session_data *sd, unsigned short *nameid);
for(hIndex = 0; hIndex < HPMHooks.count.HP_buyingstore_search_pre; hIndex++ ) {
@@ -2998,8 +2934,7 @@ bool HP_buyingstore_search(struct map_session_data *sd, unsigned short nameid) {
}
bool HP_buyingstore_searchall(struct map_session_data *sd, const struct s_search_store_search *s) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_buyingstore_searchall_pre ) {
bool (*preHookFunc) (struct map_session_data *sd, const struct s_search_store_search *s);
for(hIndex = 0; hIndex < HPMHooks.count.HP_buyingstore_searchall_pre; hIndex++ ) {
@@ -3025,8 +2960,7 @@ bool HP_buyingstore_searchall(struct map_session_data *sd, const struct s_search
}
unsigned int HP_buyingstore_getuid(void) {
int hIndex = 0;
- unsigned int retVal___;
- memset(&retVal___, '\0', sizeof(unsigned int));
+ unsigned int retVal___ = 0;
if( HPMHooks.count.HP_buyingstore_getuid_pre ) {
unsigned int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_buyingstore_getuid_pre; hIndex++ ) {
@@ -3053,8 +2987,7 @@ unsigned int HP_buyingstore_getuid(void) {
/* chat */
int HP_chat_create_pc_chat(struct map_session_data *sd, const char *title, const char *pass, int limit, bool pub) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chat_create_pc_chat_pre ) {
int (*preHookFunc) (struct map_session_data *sd, const char *title, const char *pass, int *limit, bool *pub);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chat_create_pc_chat_pre; hIndex++ ) {
@@ -3080,8 +3013,7 @@ int HP_chat_create_pc_chat(struct map_session_data *sd, const char *title, const
}
int HP_chat_join(struct map_session_data *sd, int chatid, const char *pass) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chat_join_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *chatid, const char *pass);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chat_join_pre; hIndex++ ) {
@@ -3107,8 +3039,7 @@ int HP_chat_join(struct map_session_data *sd, int chatid, const char *pass) {
}
int HP_chat_leave(struct map_session_data *sd, bool kicked) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chat_leave_pre ) {
int (*preHookFunc) (struct map_session_data *sd, bool *kicked);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chat_leave_pre; hIndex++ ) {
@@ -3134,8 +3065,7 @@ int HP_chat_leave(struct map_session_data *sd, bool kicked) {
}
int HP_chat_change_owner(struct map_session_data *sd, const char *nextownername) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chat_change_owner_pre ) {
int (*preHookFunc) (struct map_session_data *sd, const char *nextownername);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chat_change_owner_pre; hIndex++ ) {
@@ -3161,8 +3091,7 @@ int HP_chat_change_owner(struct map_session_data *sd, const char *nextownername)
}
int HP_chat_change_status(struct map_session_data *sd, const char *title, const char *pass, int limit, bool pub) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chat_change_status_pre ) {
int (*preHookFunc) (struct map_session_data *sd, const char *title, const char *pass, int *limit, bool *pub);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chat_change_status_pre; hIndex++ ) {
@@ -3188,8 +3117,7 @@ int HP_chat_change_status(struct map_session_data *sd, const char *title, const
}
int HP_chat_kick(struct map_session_data *sd, const char *kickusername) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chat_kick_pre ) {
int (*preHookFunc) (struct map_session_data *sd, const char *kickusername);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chat_kick_pre; hIndex++ ) {
@@ -3215,8 +3143,7 @@ int HP_chat_kick(struct map_session_data *sd, const char *kickusername) {
}
int HP_chat_create_npc_chat(struct npc_data *nd, const char *title, int limit, bool pub, int trigger, const char *ev, int zeny, int minLvl, int maxLvl) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chat_create_npc_chat_pre ) {
int (*preHookFunc) (struct npc_data *nd, const char *title, int *limit, bool *pub, int *trigger, const char *ev, int *zeny, int *minLvl, int *maxLvl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chat_create_npc_chat_pre; hIndex++ ) {
@@ -3242,8 +3169,7 @@ int HP_chat_create_npc_chat(struct npc_data *nd, const char *title, int limit, b
}
int HP_chat_delete_npc_chat(struct npc_data *nd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chat_delete_npc_chat_pre ) {
int (*preHookFunc) (struct npc_data *nd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chat_delete_npc_chat_pre; hIndex++ ) {
@@ -3269,8 +3195,7 @@ int HP_chat_delete_npc_chat(struct npc_data *nd) {
}
int HP_chat_enable_event(struct chat_data *cd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chat_enable_event_pre ) {
int (*preHookFunc) (struct chat_data *cd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chat_enable_event_pre; hIndex++ ) {
@@ -3296,8 +3221,7 @@ int HP_chat_enable_event(struct chat_data *cd) {
}
int HP_chat_disable_event(struct chat_data *cd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chat_disable_event_pre ) {
int (*preHookFunc) (struct chat_data *cd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chat_disable_event_pre; hIndex++ ) {
@@ -3323,8 +3247,7 @@ int HP_chat_disable_event(struct chat_data *cd) {
}
int HP_chat_npc_kick_all(struct chat_data *cd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chat_npc_kick_all_pre ) {
int (*preHookFunc) (struct chat_data *cd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chat_npc_kick_all_pre; hIndex++ ) {
@@ -3350,8 +3273,7 @@ int HP_chat_npc_kick_all(struct chat_data *cd) {
}
int HP_chat_trigger_event(struct chat_data *cd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chat_trigger_event_pre ) {
int (*preHookFunc) (struct chat_data *cd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chat_trigger_event_pre; hIndex++ ) {
@@ -3404,8 +3326,7 @@ struct chat_data* HP_chat_create(struct block_list *bl, const char *title, const
/* chrif */
int HP_chrif_final(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_final_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_final_pre; hIndex++ ) {
@@ -3431,8 +3352,7 @@ int HP_chrif_final(void) {
}
int HP_chrif_init(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_init_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_init_pre; hIndex++ ) {
@@ -3533,8 +3453,7 @@ void HP_chrif_checkdefaultlogin(void) {
}
int HP_chrif_setip(const char *ip) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_setip_pre ) {
int (*preHookFunc) (const char *ip);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_setip_pre; hIndex++ ) {
@@ -3585,8 +3504,7 @@ void HP_chrif_setport(uint16 port) {
}
int HP_chrif_isconnected(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_isconnected_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_isconnected_pre; hIndex++ ) {
@@ -3689,8 +3607,7 @@ struct auth_node* HP_chrif_auth_check(int account_id, int char_id, enum sd_state
}
bool HP_chrif_auth_delete(int account_id, int char_id, enum sd_state state) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_chrif_auth_delete_pre ) {
bool (*preHookFunc) (int *account_id, int *char_id, enum sd_state *state);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_auth_delete_pre; hIndex++ ) {
@@ -3716,8 +3633,7 @@ bool HP_chrif_auth_delete(int account_id, int char_id, enum sd_state state) {
}
bool HP_chrif_auth_finished(struct map_session_data *sd) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_chrif_auth_finished_pre ) {
bool (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_auth_finished_pre; hIndex++ ) {
@@ -3793,8 +3709,7 @@ void HP_chrif_authok(int fd) {
}
int HP_chrif_scdata_request(int account_id, int char_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_scdata_request_pre ) {
int (*preHookFunc) (int *account_id, int *char_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_scdata_request_pre; hIndex++ ) {
@@ -3820,8 +3735,7 @@ int HP_chrif_scdata_request(int account_id, int char_id) {
}
int HP_chrif_save(struct map_session_data *sd, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_save_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_save_pre; hIndex++ ) {
@@ -3847,8 +3761,7 @@ int HP_chrif_save(struct map_session_data *sd, int flag) {
}
int HP_chrif_charselectreq(struct map_session_data *sd, uint32 s_ip) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_charselectreq_pre ) {
int (*preHookFunc) (struct map_session_data *sd, uint32 *s_ip);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_charselectreq_pre; hIndex++ ) {
@@ -3874,8 +3787,7 @@ int HP_chrif_charselectreq(struct map_session_data *sd, uint32 s_ip) {
}
int HP_chrif_changemapserver(struct map_session_data *sd, uint32 ip, uint16 port) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_changemapserver_pre ) {
int (*preHookFunc) (struct map_session_data *sd, uint32 *ip, uint16 *port);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_changemapserver_pre; hIndex++ ) {
@@ -3901,8 +3813,7 @@ int HP_chrif_changemapserver(struct map_session_data *sd, uint32 ip, uint16 port
}
int HP_chrif_searchcharid(int char_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_searchcharid_pre ) {
int (*preHookFunc) (int *char_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_searchcharid_pre; hIndex++ ) {
@@ -3928,8 +3839,7 @@ int HP_chrif_searchcharid(int char_id) {
}
int HP_chrif_changeemail(int id, const char *actual_email, const char *new_email) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_changeemail_pre ) {
int (*preHookFunc) (int *id, const char *actual_email, const char *new_email);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_changeemail_pre; hIndex++ ) {
@@ -3955,8 +3865,7 @@ int HP_chrif_changeemail(int id, const char *actual_email, const char *new_email
}
int HP_chrif_char_ask_name(int acc, const char *character_name, unsigned short operation_type, int year, int month, int day, int hour, int minute, int second) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_char_ask_name_pre ) {
int (*preHookFunc) (int *acc, const char *character_name, unsigned short *operation_type, int *year, int *month, int *day, int *hour, int *minute, int *second);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_char_ask_name_pre; hIndex++ ) {
@@ -3982,8 +3891,7 @@ int HP_chrif_char_ask_name(int acc, const char *character_name, unsigned short o
}
int HP_chrif_updatefamelist(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_updatefamelist_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_updatefamelist_pre; hIndex++ ) {
@@ -4009,8 +3917,7 @@ int HP_chrif_updatefamelist(struct map_session_data *sd) {
}
int HP_chrif_buildfamelist(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_buildfamelist_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_buildfamelist_pre; hIndex++ ) {
@@ -4036,8 +3943,7 @@ int HP_chrif_buildfamelist(void) {
}
int HP_chrif_save_scdata(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_save_scdata_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_save_scdata_pre; hIndex++ ) {
@@ -4063,8 +3969,7 @@ int HP_chrif_save_scdata(struct map_session_data *sd) {
}
int HP_chrif_ragsrvinfo(int base_rate, int job_rate, int drop_rate) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_ragsrvinfo_pre ) {
int (*preHookFunc) (int *base_rate, int *job_rate, int *drop_rate);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_ragsrvinfo_pre; hIndex++ ) {
@@ -4090,8 +3995,7 @@ int HP_chrif_ragsrvinfo(int base_rate, int job_rate, int drop_rate) {
}
int HP_chrif_char_offline(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_char_offline_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_char_offline_pre; hIndex++ ) {
@@ -4117,8 +4021,7 @@ int HP_chrif_char_offline(struct map_session_data *sd) {
}
int HP_chrif_char_offline_nsd(int account_id, int char_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_char_offline_nsd_pre ) {
int (*preHookFunc) (int *account_id, int *char_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_char_offline_nsd_pre; hIndex++ ) {
@@ -4144,8 +4047,7 @@ int HP_chrif_char_offline_nsd(int account_id, int char_id) {
}
int HP_chrif_char_reset_offline(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_char_reset_offline_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_char_reset_offline_pre; hIndex++ ) {
@@ -4171,8 +4073,7 @@ int HP_chrif_char_reset_offline(void) {
}
int HP_chrif_send_users_tochar(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_send_users_tochar_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_send_users_tochar_pre; hIndex++ ) {
@@ -4198,8 +4099,7 @@ int HP_chrif_send_users_tochar(void) {
}
int HP_chrif_char_online(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_char_online_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_char_online_pre; hIndex++ ) {
@@ -4225,8 +4125,7 @@ int HP_chrif_char_online(struct map_session_data *sd) {
}
int HP_chrif_changesex(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_changesex_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_changesex_pre; hIndex++ ) {
@@ -4252,8 +4151,7 @@ int HP_chrif_changesex(struct map_session_data *sd) {
}
int HP_chrif_divorce(int partner_id1, int partner_id2) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_divorce_pre ) {
int (*preHookFunc) (int *partner_id1, int *partner_id2);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_divorce_pre; hIndex++ ) {
@@ -4279,8 +4177,7 @@ int HP_chrif_divorce(int partner_id1, int partner_id2) {
}
int HP_chrif_removefriend(int char_id, int friend_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_removefriend_pre ) {
int (*preHookFunc) (int *char_id, int *friend_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_removefriend_pre; hIndex++ ) {
@@ -4331,8 +4228,7 @@ void HP_chrif_send_report(char *buf, int len) {
}
int HP_chrif_flush_fifo(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_flush_fifo_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_flush_fifo_pre; hIndex++ ) {
@@ -4383,8 +4279,7 @@ void HP_chrif_skillid2idx(int fd) {
}
bool HP_chrif_sd_to_auth(TBL_PC *sd, enum sd_state state) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_chrif_sd_to_auth_pre ) {
bool (*preHookFunc) (TBL_PC *sd, enum sd_state *state);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_sd_to_auth_pre; hIndex++ ) {
@@ -4410,8 +4305,7 @@ bool HP_chrif_sd_to_auth(TBL_PC *sd, enum sd_state state) {
}
int HP_chrif_check_connect_char_server(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_check_connect_char_server_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_check_connect_char_server_pre; hIndex++ ) {
@@ -4437,8 +4331,7 @@ int HP_chrif_check_connect_char_server(int tid, unsigned int tick, int id, intpt
}
bool HP_chrif_auth_logout(TBL_PC *sd, enum sd_state state) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_chrif_auth_logout_pre ) {
bool (*preHookFunc) (TBL_PC *sd, enum sd_state *state);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_auth_logout_pre; hIndex++ ) {
@@ -4489,8 +4382,7 @@ void HP_chrif_save_ack(int fd) {
}
int HP_chrif_reconnect(DBKey key, DBData *data, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_reconnect_pre ) {
int (*preHookFunc) (DBKey *key, DBData *data, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_reconnect_pre; hIndex++ ) {
@@ -4522,8 +4414,7 @@ int HP_chrif_reconnect(DBKey key, DBData *data, va_list ap) {
}
int HP_chrif_auth_db_cleanup_sub(DBKey key, DBData *data, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_auth_db_cleanup_sub_pre ) {
int (*preHookFunc) (DBKey *key, DBData *data, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_auth_db_cleanup_sub_pre; hIndex++ ) {
@@ -4580,8 +4471,7 @@ void HP_chrif_char_ask_name_answer(int acc, const char *player_name, uint16 type
}
int HP_chrif_auth_db_final(DBKey key, DBData *data, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_auth_db_final_pre ) {
int (*preHookFunc) (DBKey *key, DBData *data, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_auth_db_final_pre; hIndex++ ) {
@@ -4613,8 +4503,7 @@ int HP_chrif_auth_db_final(DBKey key, DBData *data, va_list ap) {
}
int HP_chrif_send_usercount_tochar(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_send_usercount_tochar_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_send_usercount_tochar_pre; hIndex++ ) {
@@ -4640,8 +4529,7 @@ int HP_chrif_send_usercount_tochar(int tid, unsigned int tick, int id, intptr_t
}
int HP_chrif_auth_db_cleanup(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_auth_db_cleanup_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_auth_db_cleanup_pre; hIndex++ ) {
@@ -4667,8 +4555,7 @@ int HP_chrif_auth_db_cleanup(int tid, unsigned int tick, int id, intptr_t data)
}
int HP_chrif_connect(int fd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_connect_pre ) {
int (*preHookFunc) (int *fd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_connect_pre; hIndex++ ) {
@@ -4694,8 +4581,7 @@ int HP_chrif_connect(int fd) {
}
int HP_chrif_connectack(int fd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_connectack_pre ) {
int (*preHookFunc) (int *fd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_connectack_pre; hIndex++ ) {
@@ -4721,8 +4607,7 @@ int HP_chrif_connectack(int fd) {
}
int HP_chrif_sendmap(int fd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_sendmap_pre ) {
int (*preHookFunc) (int *fd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_sendmap_pre; hIndex++ ) {
@@ -4748,8 +4633,7 @@ int HP_chrif_sendmap(int fd) {
}
int HP_chrif_sendmapack(int fd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_sendmapack_pre ) {
int (*preHookFunc) (int *fd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_sendmapack_pre; hIndex++ ) {
@@ -4775,8 +4659,7 @@ int HP_chrif_sendmapack(int fd) {
}
int HP_chrif_recvmap(int fd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_recvmap_pre ) {
int (*preHookFunc) (int *fd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_recvmap_pre; hIndex++ ) {
@@ -4802,8 +4685,7 @@ int HP_chrif_recvmap(int fd) {
}
int HP_chrif_changemapserverack(int account_id, int login_id1, int login_id2, int char_id, short map_index, short x, short y, uint32 ip, uint16 port) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_changemapserverack_pre ) {
int (*preHookFunc) (int *account_id, int *login_id1, int *login_id2, int *char_id, short *map_index, short *x, short *y, uint32 *ip, uint16 *port);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_changemapserverack_pre; hIndex++ ) {
@@ -4829,8 +4711,7 @@ int HP_chrif_changemapserverack(int account_id, int login_id1, int login_id2, in
}
int HP_chrif_changedsex(int fd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_changedsex_pre ) {
int (*preHookFunc) (int *fd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_changedsex_pre; hIndex++ ) {
@@ -4856,8 +4737,7 @@ int HP_chrif_changedsex(int fd) {
}
int HP_chrif_divorceack(int char_id, int partner_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_divorceack_pre ) {
int (*preHookFunc) (int *char_id, int *partner_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_divorceack_pre; hIndex++ ) {
@@ -4883,8 +4763,7 @@ int HP_chrif_divorceack(int char_id, int partner_id) {
}
int HP_chrif_accountban(int fd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_accountban_pre ) {
int (*preHookFunc) (int *fd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_accountban_pre; hIndex++ ) {
@@ -4910,8 +4789,7 @@ int HP_chrif_accountban(int fd) {
}
int HP_chrif_recvfamelist(int fd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_recvfamelist_pre ) {
int (*preHookFunc) (int *fd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_recvfamelist_pre; hIndex++ ) {
@@ -4937,8 +4815,7 @@ int HP_chrif_recvfamelist(int fd) {
}
int HP_chrif_load_scdata(int fd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_load_scdata_pre ) {
int (*preHookFunc) (int *fd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_load_scdata_pre; hIndex++ ) {
@@ -4989,8 +4866,7 @@ void HP_chrif_update_ip(int fd) {
}
int HP_chrif_disconnectplayer(int fd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_disconnectplayer_pre ) {
int (*preHookFunc) (int *fd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_disconnectplayer_pre; hIndex++ ) {
@@ -5016,8 +4892,7 @@ int HP_chrif_disconnectplayer(int fd) {
}
int HP_chrif_removemap(int fd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_removemap_pre ) {
int (*preHookFunc) (int *fd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_removemap_pre; hIndex++ ) {
@@ -5043,8 +4918,7 @@ int HP_chrif_removemap(int fd) {
}
int HP_chrif_updatefamelist_ack(int fd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_updatefamelist_ack_pre ) {
int (*preHookFunc) (int *fd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_updatefamelist_ack_pre; hIndex++ ) {
@@ -5120,8 +4994,7 @@ void HP_chrif_keepalive_ack(int fd) {
}
int HP_chrif_deadopt(int father_id, int mother_id, int child_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_deadopt_pre ) {
int (*preHookFunc) (int *father_id, int *mother_id, int *child_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_deadopt_pre; hIndex++ ) {
@@ -5222,8 +5095,7 @@ void HP_chrif_on_disconnect(void) {
}
int HP_chrif_parse(int fd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_chrif_parse_pre ) {
int (*preHookFunc) (int *fd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_chrif_parse_pre; hIndex++ ) {
@@ -5250,8 +5122,7 @@ int HP_chrif_parse(int fd) {
/* clif */
int HP_clif_init(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_clif_init_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_init_pre; hIndex++ ) {
@@ -5302,8 +5173,7 @@ void HP_clif_final(void) {
}
int HP_clif_setip(const char *ip) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_clif_setip_pre ) {
int (*preHookFunc) (const char *ip);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_setip_pre; hIndex++ ) {
@@ -5379,8 +5249,7 @@ void HP_clif_setport(uint16 port) {
}
uint32 HP_clif_refresh_ip(void) {
int hIndex = 0;
- uint32 retVal___;
- memset(&retVal___, '\0', sizeof(uint32));
+ uint32 retVal___ = 0;
if( HPMHooks.count.HP_clif_refresh_ip_pre ) {
uint32 (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_refresh_ip_pre; hIndex++ ) {
@@ -5406,8 +5275,7 @@ uint32 HP_clif_refresh_ip(void) {
}
int HP_clif_send(const void *buf, int len, struct block_list *bl, enum send_target type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_clif_send_pre ) {
int (*preHookFunc) (const void *buf, int *len, struct block_list *bl, enum send_target *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_send_pre; hIndex++ ) {
@@ -5433,8 +5301,7 @@ int HP_clif_send(const void *buf, int len, struct block_list *bl, enum send_targ
}
int HP_clif_send_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_clif_send_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_send_sub_pre; hIndex++ ) {
@@ -5466,8 +5333,7 @@ int HP_clif_send_sub(struct block_list *bl, va_list ap) {
}
int HP_clif_parse(int fd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_clif_parse_pre ) {
int (*preHookFunc) (int *fd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_parse_pre; hIndex++ ) {
@@ -5493,8 +5359,7 @@ int HP_clif_parse(int fd) {
}
unsigned short HP_clif_parse_cmd(int fd, struct map_session_data *sd) {
int hIndex = 0;
- unsigned short retVal___;
- memset(&retVal___, '\0', sizeof(unsigned short));
+ unsigned short retVal___ = 0;
if( HPMHooks.count.HP_clif_parse_cmd_pre ) {
unsigned short (*preHookFunc) (int *fd, struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_parse_cmd_pre; hIndex++ ) {
@@ -5520,8 +5385,7 @@ unsigned short HP_clif_parse_cmd(int fd, struct map_session_data *sd) {
}
unsigned short HP_clif_decrypt_cmd(int cmd, struct map_session_data *sd) {
int hIndex = 0;
- unsigned short retVal___;
- memset(&retVal___, '\0', sizeof(unsigned short));
+ unsigned short retVal___ = 0;
if( HPMHooks.count.HP_clif_decrypt_cmd_pre ) {
unsigned short (*preHookFunc) (int *cmd, struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_decrypt_cmd_pre; hIndex++ ) {
@@ -6572,8 +6436,7 @@ void HP_clif_skillunit_update(struct block_list *bl) {
}
int HP_clif_clearunit_delayed_sub(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_clif_clearunit_delayed_sub_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_clearunit_delayed_sub_pre; hIndex++ ) {
@@ -6724,8 +6587,7 @@ void HP_clif_set_unit_walking(struct block_list *bl, struct map_session_data *ts
}
int HP_clif_calc_walkdelay(struct block_list *bl, int delay, int type, int damage, int div_) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_clif_calc_walkdelay_pre ) {
int (*preHookFunc) (struct block_list *bl, int *delay, int *type, int *damage, int *div_);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_calc_walkdelay_pre; hIndex++ ) {
@@ -6826,8 +6688,7 @@ void HP_clif_clearchar_skillunit(struct skill_unit *su, int fd) {
}
int HP_clif_getareachar(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_clif_getareachar_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_getareachar_pre; hIndex++ ) {
@@ -6859,8 +6720,7 @@ int HP_clif_getareachar(struct block_list *bl, va_list ap) {
}
int HP_clif_spawn(struct block_list *bl) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_clif_spawn_pre ) {
int (*preHookFunc) (struct block_list *bl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_spawn_pre; hIndex++ ) {
@@ -7536,8 +7396,7 @@ void HP_clif_viewpoint(struct map_session_data *sd, int npc_id, int type, int x,
}
int HP_clif_damage(struct block_list *src, struct block_list *dst, unsigned int tick, int sdelay, int ddelay, int64 damage, int div, int type, int64 damage2) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_clif_damage_pre ) {
int (*preHookFunc) (struct block_list *src, struct block_list *dst, unsigned int *tick, int *sdelay, int *ddelay, int64 *damage, int *div, int *type, int64 *damage2);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_damage_pre; hIndex++ ) {
@@ -7838,8 +7697,7 @@ void HP_clif_hotkeys(struct map_session_data *sd) {
}
int HP_clif_insight(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_clif_insight_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_insight_pre; hIndex++ ) {
@@ -7871,8 +7729,7 @@ int HP_clif_insight(struct block_list *bl, va_list ap) {
}
int HP_clif_outsight(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_clif_outsight_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_outsight_pre; hIndex++ ) {
@@ -8629,8 +8486,7 @@ void HP_clif_monster_hp_bar(struct mob_data *md, struct map_session_data *sd) {
}
int HP_clif_hpmeter(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_clif_hpmeter_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_hpmeter_pre; hIndex++ ) {
@@ -8681,8 +8537,7 @@ void HP_clif_hpmeter_single(int fd, int id, unsigned int hp, unsigned int maxhp)
}
int HP_clif_hpmeter_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_clif_hpmeter_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_hpmeter_sub_pre; hIndex++ ) {
@@ -9189,8 +9044,7 @@ void HP_clif_showdigit(struct map_session_data *sd, unsigned char type, int valu
}
int HP_clif_elementalconverter_list(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_clif_elementalconverter_list_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_elementalconverter_list_pre; hIndex++ ) {
@@ -9216,8 +9070,7 @@ int HP_clif_elementalconverter_list(struct map_session_data *sd) {
}
int HP_clif_spellbook_list(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_clif_spellbook_list_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_spellbook_list_pre; hIndex++ ) {
@@ -9243,8 +9096,7 @@ int HP_clif_spellbook_list(struct map_session_data *sd) {
}
int HP_clif_magicdecoy_list(struct map_session_data *sd, uint16 skill_lv, short x, short y) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_clif_magicdecoy_list_pre ) {
int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_lv, short *x, short *y);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_magicdecoy_list_pre; hIndex++ ) {
@@ -9270,8 +9122,7 @@ int HP_clif_magicdecoy_list(struct map_session_data *sd, uint16 skill_lv, short
}
int HP_clif_poison_list(struct map_session_data *sd, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_clif_poison_list_pre ) {
int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_poison_list_pre; hIndex++ ) {
@@ -9297,8 +9148,7 @@ int HP_clif_poison_list(struct map_session_data *sd, uint16 skill_lv) {
}
int HP_clif_autoshadowspell_list(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_clif_autoshadowspell_list_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_autoshadowspell_list_pre; hIndex++ ) {
@@ -9324,8 +9174,7 @@ int HP_clif_autoshadowspell_list(struct map_session_data *sd) {
}
int HP_clif_skill_itemlistwindow(struct map_session_data *sd, uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_clif_skill_itemlistwindow_pre ) {
int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skill_itemlistwindow_pre; hIndex++ ) {
@@ -9601,8 +9450,7 @@ void HP_clif_charnameupdate(struct map_session_data *ssd) {
}
int HP_clif_delayquit(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_clif_delayquit_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_delayquit_pre; hIndex++ ) {
@@ -10028,8 +9876,7 @@ void HP_clif_callpartner(struct map_session_data *sd) {
}
int HP_clif_skill_damage(struct block_list *src, struct block_list *dst, unsigned int tick, int sdelay, int ddelay, int64 damage, int div, uint16 skill_id, uint16 skill_lv, int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_clif_skill_damage_pre ) {
int (*preHookFunc) (struct block_list *src, struct block_list *dst, unsigned int *tick, int *sdelay, int *ddelay, int64 *damage, int *div, uint16 *skill_id, uint16 *skill_lv, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skill_damage_pre; hIndex++ ) {
@@ -10055,8 +9902,7 @@ int HP_clif_skill_damage(struct block_list *src, struct block_list *dst, unsigne
}
int HP_clif_skill_nodamage(struct block_list *src, struct block_list *dst, uint16 skill_id, int heal, int fail) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_clif_skill_nodamage_pre ) {
int (*preHookFunc) (struct block_list *src, struct block_list *dst, uint16 *skill_id, int *heal, int *fail);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_skill_nodamage_pre; hIndex++ ) {
@@ -11332,8 +11178,7 @@ void HP_clif_messageln(const int fd, const char *mes) {
}
int HP_clif_colormes(int fd, enum clif_colors color, const char *msg) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_clif_colormes_pre ) {
int (*preHookFunc) (int *fd, enum clif_colors *color, const char *msg);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_colormes_pre; hIndex++ ) {
@@ -11359,8 +11204,7 @@ int HP_clif_colormes(int fd, enum clif_colors color, const char *msg) {
}
bool HP_clif_process_message(struct map_session_data *sd, int format, char **name_, int *namelen_, char **message_, int *messagelen_) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_clif_process_message_pre ) {
bool (*preHookFunc) (struct map_session_data *sd, int *format, char **name_, int *namelen_, char **message_, int *messagelen_);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_process_message_pre; hIndex++ ) {
@@ -12911,8 +12755,7 @@ void HP_clif_guild_message(struct guild *g, int account_id, const char *mes, int
}
int HP_clif_guild_skillup(struct map_session_data *sd, uint16 skill_id, int lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_clif_guild_skillup_pre ) {
int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id, int *lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_guild_skillup_pre; hIndex++ ) {
@@ -13213,8 +13056,7 @@ void HP_clif_guild_expulsionlist(struct map_session_data *sd) {
}
bool HP_clif_validate_emblem(const uint8 *emblem, unsigned long emblem_len) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_clif_validate_emblem_pre ) {
bool (*preHookFunc) (const uint8 *emblem, unsigned long *emblem_len);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_validate_emblem_pre; hIndex++ ) {
@@ -13440,8 +13282,7 @@ void HP_clif_sendbgemblem_single(int fd, struct map_session_data *sd) {
}
int HP_clif_instance(int instance_id, int type, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_clif_instance_pre ) {
int (*preHookFunc) (int *instance_id, int *type, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_instance_pre; hIndex++ ) {
@@ -13692,8 +13533,7 @@ void HP_clif_pet_food(struct map_session_data *sd, int foodid, int fail) {
}
int HP_clif_friendslist_toggle_sub(struct map_session_data *sd, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_clif_friendslist_toggle_sub_pre ) {
int (*preHookFunc) (struct map_session_data *sd, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_friendslist_toggle_sub_pre; hIndex++ ) {
@@ -14000,8 +13840,7 @@ void HP_clif_hominfo(struct map_session_data *sd, struct homun_data *hd, int fla
}
int HP_clif_homskillinfoblock(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_clif_homskillinfoblock_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_homskillinfoblock_pre; hIndex++ ) {
@@ -14052,8 +13891,7 @@ void HP_clif_homskillup(struct map_session_data *sd, uint16 skill_id) {
}
int HP_clif_hom_food(struct map_session_data *sd, int foodid, int fail) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_clif_hom_food_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *foodid, int *fail);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_hom_food_pre; hIndex++ ) {
@@ -15979,8 +15817,7 @@ void HP_clif_bc_ready(void) {
}
int HP_clif_undisguise_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_clif_undisguise_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_undisguise_timer_pre; hIndex++ ) {
@@ -21657,8 +21494,7 @@ void HP_clif_pPartyBookingCancelVolunteer(int fd, struct map_session_data *sd) {
/* duel */
int HP_duel_create(struct map_session_data *sd, const unsigned int maxpl) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_duel_create_pre ) {
int (*preHookFunc) (struct map_session_data *sd, const unsigned int *maxpl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_duel_create_pre; hIndex++ ) {
@@ -21809,8 +21645,7 @@ void HP_duel_showinfo(const unsigned int did, struct map_session_data *sd) {
}
int HP_duel_checktime(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_duel_checktime_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_duel_checktime_pre; hIndex++ ) {
@@ -21887,8 +21722,7 @@ void HP_duel_final(void) {
/* elemental */
int HP_elemental_init(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_elemental_init_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_init_pre; hIndex++ ) {
@@ -21939,8 +21773,7 @@ void HP_elemental_final(void) {
}
bool HP_elemental_class(int class_) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_elemental_class_pre ) {
bool (*preHookFunc) (int *class_);
for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_class_pre; hIndex++ ) {
@@ -21992,8 +21825,7 @@ struct view_data* HP_elemental_get_viewdata(int class_) {
}
int HP_elemental_create(struct map_session_data *sd, int class_, unsigned int lifetime) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_elemental_create_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *class_, unsigned int *lifetime);
for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_create_pre; hIndex++ ) {
@@ -22019,8 +21851,7 @@ int HP_elemental_create(struct map_session_data *sd, int class_, unsigned int li
}
int HP_elemental_data_received(struct s_elemental *ele, bool flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_elemental_data_received_pre ) {
int (*preHookFunc) (struct s_elemental *ele, bool *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_data_received_pre; hIndex++ ) {
@@ -22046,8 +21877,7 @@ int HP_elemental_data_received(struct s_elemental *ele, bool flag) {
}
int HP_elemental_save(struct elemental_data *ed) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_elemental_save_pre ) {
int (*preHookFunc) (struct elemental_data *ed);
for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_save_pre; hIndex++ ) {
@@ -22073,8 +21903,7 @@ int HP_elemental_save(struct elemental_data *ed) {
}
int HP_elemental_change_mode_ack(struct elemental_data *ed, int mode) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_elemental_change_mode_ack_pre ) {
int (*preHookFunc) (struct elemental_data *ed, int *mode);
for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_change_mode_ack_pre; hIndex++ ) {
@@ -22100,8 +21929,7 @@ int HP_elemental_change_mode_ack(struct elemental_data *ed, int mode) {
}
int HP_elemental_change_mode(struct elemental_data *ed, int mode) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_elemental_change_mode_pre ) {
int (*preHookFunc) (struct elemental_data *ed, int *mode);
for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_change_mode_pre; hIndex++ ) {
@@ -22152,8 +21980,7 @@ void HP_elemental_heal(struct elemental_data *ed, int hp, int sp) {
}
int HP_elemental_dead(struct elemental_data *ed) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_elemental_dead_pre ) {
int (*preHookFunc) (struct elemental_data *ed);
for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_dead_pre; hIndex++ ) {
@@ -22179,8 +22006,7 @@ int HP_elemental_dead(struct elemental_data *ed) {
}
int HP_elemental_delete(struct elemental_data *ed, int reply) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_elemental_delete_pre ) {
int (*preHookFunc) (struct elemental_data *ed, int *reply);
for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_delete_pre; hIndex++ ) {
@@ -22231,8 +22057,7 @@ void HP_elemental_summon_stop(struct elemental_data *ed) {
}
int HP_elemental_get_lifetime(struct elemental_data *ed) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_elemental_get_lifetime_pre ) {
int (*preHookFunc) (struct elemental_data *ed);
for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_get_lifetime_pre; hIndex++ ) {
@@ -22258,8 +22083,7 @@ int HP_elemental_get_lifetime(struct elemental_data *ed) {
}
int HP_elemental_unlocktarget(struct elemental_data *ed) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_elemental_unlocktarget_pre ) {
int (*preHookFunc) (struct elemental_data *ed);
for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_unlocktarget_pre; hIndex++ ) {
@@ -22285,8 +22109,7 @@ int HP_elemental_unlocktarget(struct elemental_data *ed) {
}
int HP_elemental_skillnotok(uint16 skill_id, struct elemental_data *ed) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_elemental_skillnotok_pre ) {
int (*preHookFunc) (uint16 *skill_id, struct elemental_data *ed);
for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_skillnotok_pre; hIndex++ ) {
@@ -22312,8 +22135,7 @@ int HP_elemental_skillnotok(uint16 skill_id, struct elemental_data *ed) {
}
int HP_elemental_set_target(struct map_session_data *sd, struct block_list *bl) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_elemental_set_target_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct block_list *bl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_set_target_pre; hIndex++ ) {
@@ -22339,8 +22161,7 @@ int HP_elemental_set_target(struct map_session_data *sd, struct block_list *bl)
}
int HP_elemental_clean_single_effect(struct elemental_data *ed, uint16 skill_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_elemental_clean_single_effect_pre ) {
int (*preHookFunc) (struct elemental_data *ed, uint16 *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_clean_single_effect_pre; hIndex++ ) {
@@ -22366,8 +22187,7 @@ int HP_elemental_clean_single_effect(struct elemental_data *ed, uint16 skill_id)
}
int HP_elemental_clean_effect(struct elemental_data *ed) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_elemental_clean_effect_pre ) {
int (*preHookFunc) (struct elemental_data *ed);
for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_clean_effect_pre; hIndex++ ) {
@@ -22393,8 +22213,7 @@ int HP_elemental_clean_effect(struct elemental_data *ed) {
}
int HP_elemental_action(struct elemental_data *ed, struct block_list *bl, unsigned int tick) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_elemental_action_pre ) {
int (*preHookFunc) (struct elemental_data *ed, struct block_list *bl, unsigned int *tick);
for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_action_pre; hIndex++ ) {
@@ -22447,8 +22266,7 @@ struct skill_condition HP_elemental_skill_get_requirements(uint16 skill_id, uint
}
int HP_elemental_read_skilldb(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_elemental_read_skilldb_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_read_skilldb_pre; hIndex++ ) {
@@ -22524,8 +22342,7 @@ void HP_elemental_reload_skilldb(void) {
}
int HP_elemental_search_index(int class_) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_elemental_search_index_pre ) {
int (*preHookFunc) (int *class_);
for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_search_index_pre; hIndex++ ) {
@@ -22576,8 +22393,7 @@ void HP_elemental_summon_init(struct elemental_data *ed) {
}
int HP_elemental_summon_end_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_elemental_summon_end_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_summon_end_timer_pre; hIndex++ ) {
@@ -22603,8 +22419,7 @@ int HP_elemental_summon_end_timer(int tid, unsigned int tick, int id, intptr_t d
}
int HP_elemental_ai_sub_timer_activesearch(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_elemental_ai_sub_timer_activesearch_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_ai_sub_timer_activesearch_pre; hIndex++ ) {
@@ -22636,8 +22451,7 @@ int HP_elemental_ai_sub_timer_activesearch(struct block_list *bl, va_list ap) {
}
int HP_elemental_ai_sub_timer(struct elemental_data *ed, struct map_session_data *sd, unsigned int tick) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_elemental_ai_sub_timer_pre ) {
int (*preHookFunc) (struct elemental_data *ed, struct map_session_data *sd, unsigned int *tick);
for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_ai_sub_timer_pre; hIndex++ ) {
@@ -22663,8 +22477,7 @@ int HP_elemental_ai_sub_timer(struct elemental_data *ed, struct map_session_data
}
int HP_elemental_ai_sub_foreachclient(struct map_session_data *sd, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_elemental_ai_sub_foreachclient_pre ) {
int (*preHookFunc) (struct map_session_data *sd, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_ai_sub_foreachclient_pre; hIndex++ ) {
@@ -22696,8 +22509,7 @@ int HP_elemental_ai_sub_foreachclient(struct map_session_data *sd, va_list ap) {
}
int HP_elemental_ai_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_elemental_ai_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_ai_timer_pre; hIndex++ ) {
@@ -22723,8 +22535,7 @@ int HP_elemental_ai_timer(int tid, unsigned int tick, int id, intptr_t data) {
}
int HP_elemental_read_db(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_elemental_read_db_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_elemental_read_db_pre; hIndex++ ) {
@@ -22801,8 +22612,7 @@ void HP_guild_final(void) {
}
int HP_guild_skill_get_max(int id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_skill_get_max_pre ) {
int (*preHookFunc) (int *id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_skill_get_max_pre; hIndex++ ) {
@@ -22828,8 +22638,7 @@ int HP_guild_skill_get_max(int id) {
}
int HP_guild_checkskill(struct guild *g, int id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_checkskill_pre ) {
int (*preHookFunc) (struct guild *g, int *id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_checkskill_pre; hIndex++ ) {
@@ -22855,8 +22664,7 @@ int HP_guild_checkskill(struct guild *g, int id) {
}
int HP_guild_check_skill_require(struct guild *g, int id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_check_skill_require_pre ) {
int (*preHookFunc) (struct guild *g, int *id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_check_skill_require_pre; hIndex++ ) {
@@ -22882,8 +22690,7 @@ int HP_guild_check_skill_require(struct guild *g, int id) {
}
int HP_guild_checkcastles(struct guild *g) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_checkcastles_pre ) {
int (*preHookFunc) (struct guild *g);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_checkcastles_pre; hIndex++ ) {
@@ -22909,8 +22716,7 @@ int HP_guild_checkcastles(struct guild *g) {
}
bool HP_guild_isallied(int guild_id, int guild_id2) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_guild_isallied_pre ) {
bool (*preHookFunc) (int *guild_id, int *guild_id2);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_isallied_pre; hIndex++ ) {
@@ -23092,8 +22898,7 @@ struct map_session_data* HP_guild_getavailablesd(struct guild *g) {
}
int HP_guild_getindex(struct guild *g, int account_id, int char_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_getindex_pre ) {
int (*preHookFunc) (struct guild *g, int *account_id, int *char_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_getindex_pre; hIndex++ ) {
@@ -23119,8 +22924,7 @@ int HP_guild_getindex(struct guild *g, int account_id, int char_id) {
}
int HP_guild_getposition(struct guild *g, struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_getposition_pre ) {
int (*preHookFunc) (struct guild *g, struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_getposition_pre; hIndex++ ) {
@@ -23146,8 +22950,7 @@ int HP_guild_getposition(struct guild *g, struct map_session_data *sd) {
}
unsigned int HP_guild_payexp(struct map_session_data *sd, unsigned int exp) {
int hIndex = 0;
- unsigned int retVal___;
- memset(&retVal___, '\0', sizeof(unsigned int));
+ unsigned int retVal___ = 0;
if( HPMHooks.count.HP_guild_payexp_pre ) {
unsigned int (*preHookFunc) (struct map_session_data *sd, unsigned int *exp);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_payexp_pre; hIndex++ ) {
@@ -23173,8 +22976,7 @@ unsigned int HP_guild_payexp(struct map_session_data *sd, unsigned int exp) {
}
int HP_guild_getexp(struct map_session_data *sd, int exp) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_getexp_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *exp);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_getexp_pre; hIndex++ ) {
@@ -23200,8 +23002,7 @@ int HP_guild_getexp(struct map_session_data *sd, int exp) {
}
int HP_guild_create(struct map_session_data *sd, const char *name) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_create_pre ) {
int (*preHookFunc) (struct map_session_data *sd, const char *name);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_create_pre; hIndex++ ) {
@@ -23227,8 +23028,7 @@ int HP_guild_create(struct map_session_data *sd, const char *name) {
}
int HP_guild_created(int account_id, int guild_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_created_pre ) {
int (*preHookFunc) (int *account_id, int *guild_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_created_pre; hIndex++ ) {
@@ -23254,8 +23054,7 @@ int HP_guild_created(int account_id, int guild_id) {
}
int HP_guild_request_info(int guild_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_request_info_pre ) {
int (*preHookFunc) (int *guild_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_request_info_pre; hIndex++ ) {
@@ -23281,8 +23080,7 @@ int HP_guild_request_info(int guild_id) {
}
int HP_guild_recv_noinfo(int guild_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_recv_noinfo_pre ) {
int (*preHookFunc) (int *guild_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_recv_noinfo_pre; hIndex++ ) {
@@ -23308,8 +23106,7 @@ int HP_guild_recv_noinfo(int guild_id) {
}
int HP_guild_recv_info(struct guild *sg) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_recv_info_pre ) {
int (*preHookFunc) (struct guild *sg);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_recv_info_pre; hIndex++ ) {
@@ -23335,8 +23132,7 @@ int HP_guild_recv_info(struct guild *sg) {
}
int HP_guild_npc_request_info(int guild_id, const char *ev) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_npc_request_info_pre ) {
int (*preHookFunc) (int *guild_id, const char *ev);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_npc_request_info_pre; hIndex++ ) {
@@ -23362,8 +23158,7 @@ int HP_guild_npc_request_info(int guild_id, const char *ev) {
}
int HP_guild_invite(struct map_session_data *sd, struct map_session_data *tsd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_invite_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct map_session_data *tsd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_invite_pre; hIndex++ ) {
@@ -23389,8 +23184,7 @@ int HP_guild_invite(struct map_session_data *sd, struct map_session_data *tsd) {
}
int HP_guild_reply_invite(struct map_session_data *sd, int guild_id, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_reply_invite_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *guild_id, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_reply_invite_pre; hIndex++ ) {
@@ -23441,8 +23235,7 @@ void HP_guild_member_joined(struct map_session_data *sd) {
}
int HP_guild_member_added(int guild_id, int account_id, int char_id, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_member_added_pre ) {
int (*preHookFunc) (int *guild_id, int *account_id, int *char_id, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_member_added_pre; hIndex++ ) {
@@ -23468,8 +23261,7 @@ int HP_guild_member_added(int guild_id, int account_id, int char_id, int flag) {
}
int HP_guild_leave(struct map_session_data *sd, int guild_id, int account_id, int char_id, const char *mes) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_leave_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *guild_id, int *account_id, int *char_id, const char *mes);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_leave_pre; hIndex++ ) {
@@ -23495,8 +23287,7 @@ int HP_guild_leave(struct map_session_data *sd, int guild_id, int account_id, in
}
int HP_guild_member_withdraw(int guild_id, int account_id, int char_id, int flag, const char *name, const char *mes) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_member_withdraw_pre ) {
int (*preHookFunc) (int *guild_id, int *account_id, int *char_id, int *flag, const char *name, const char *mes);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_member_withdraw_pre; hIndex++ ) {
@@ -23522,8 +23313,7 @@ int HP_guild_member_withdraw(int guild_id, int account_id, int char_id, int flag
}
int HP_guild_expulsion(struct map_session_data *sd, int guild_id, int account_id, int char_id, const char *mes) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_expulsion_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *guild_id, int *account_id, int *char_id, const char *mes);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_expulsion_pre; hIndex++ ) {
@@ -23549,8 +23339,7 @@ int HP_guild_expulsion(struct map_session_data *sd, int guild_id, int account_id
}
int HP_guild_skillup(struct map_session_data *sd, uint16 skill_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_skillup_pre ) {
int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_skillup_pre; hIndex++ ) {
@@ -23601,8 +23390,7 @@ void HP_guild_block_skill(struct map_session_data *sd, int time) {
}
int HP_guild_reqalliance(struct map_session_data *sd, struct map_session_data *tsd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_reqalliance_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct map_session_data *tsd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_reqalliance_pre; hIndex++ ) {
@@ -23628,8 +23416,7 @@ int HP_guild_reqalliance(struct map_session_data *sd, struct map_session_data *t
}
int HP_guild_reply_reqalliance(struct map_session_data *sd, int account_id, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_reply_reqalliance_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *account_id, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_reply_reqalliance_pre; hIndex++ ) {
@@ -23655,8 +23442,7 @@ int HP_guild_reply_reqalliance(struct map_session_data *sd, int account_id, int
}
int HP_guild_allianceack(int guild_id1, int guild_id2, int account_id1, int account_id2, int flag, const char *name1, const char *name2) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_allianceack_pre ) {
int (*preHookFunc) (int *guild_id1, int *guild_id2, int *account_id1, int *account_id2, int *flag, const char *name1, const char *name2);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_allianceack_pre; hIndex++ ) {
@@ -23682,8 +23468,7 @@ int HP_guild_allianceack(int guild_id1, int guild_id2, int account_id1, int acco
}
int HP_guild_delalliance(struct map_session_data *sd, int guild_id, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_delalliance_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *guild_id, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_delalliance_pre; hIndex++ ) {
@@ -23709,8 +23494,7 @@ int HP_guild_delalliance(struct map_session_data *sd, int guild_id, int flag) {
}
int HP_guild_opposition(struct map_session_data *sd, struct map_session_data *tsd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_opposition_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct map_session_data *tsd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_opposition_pre; hIndex++ ) {
@@ -23736,8 +23520,7 @@ int HP_guild_opposition(struct map_session_data *sd, struct map_session_data *ts
}
int HP_guild_check_alliance(int guild_id1, int guild_id2, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_check_alliance_pre ) {
int (*preHookFunc) (int *guild_id1, int *guild_id2, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_check_alliance_pre; hIndex++ ) {
@@ -23763,8 +23546,7 @@ int HP_guild_check_alliance(int guild_id1, int guild_id2, int flag) {
}
int HP_guild_send_memberinfoshort(struct map_session_data *sd, int online) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_send_memberinfoshort_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *online);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_send_memberinfoshort_pre; hIndex++ ) {
@@ -23790,8 +23572,7 @@ int HP_guild_send_memberinfoshort(struct map_session_data *sd, int online) {
}
int HP_guild_recv_memberinfoshort(int guild_id, int account_id, int char_id, int online, int lv, int class_) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_recv_memberinfoshort_pre ) {
int (*preHookFunc) (int *guild_id, int *account_id, int *char_id, int *online, int *lv, int *class_);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_recv_memberinfoshort_pre; hIndex++ ) {
@@ -23817,8 +23598,7 @@ int HP_guild_recv_memberinfoshort(int guild_id, int account_id, int char_id, int
}
int HP_guild_change_memberposition(int guild_id, int account_id, int char_id, short idx) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_change_memberposition_pre ) {
int (*preHookFunc) (int *guild_id, int *account_id, int *char_id, short *idx);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_change_memberposition_pre; hIndex++ ) {
@@ -23844,8 +23624,7 @@ int HP_guild_change_memberposition(int guild_id, int account_id, int char_id, sh
}
int HP_guild_memberposition_changed(struct guild *g, int idx, int pos) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_memberposition_changed_pre ) {
int (*preHookFunc) (struct guild *g, int *idx, int *pos);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_memberposition_changed_pre; hIndex++ ) {
@@ -23871,8 +23650,7 @@ int HP_guild_memberposition_changed(struct guild *g, int idx, int pos) {
}
int HP_guild_change_position(int guild_id, int idx, int mode, int exp_mode, const char *name) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_change_position_pre ) {
int (*preHookFunc) (int *guild_id, int *idx, int *mode, int *exp_mode, const char *name);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_change_position_pre; hIndex++ ) {
@@ -23898,8 +23676,7 @@ int HP_guild_change_position(int guild_id, int idx, int mode, int exp_mode, cons
}
int HP_guild_position_changed(int guild_id, int idx, struct guild_position *p) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_position_changed_pre ) {
int (*preHookFunc) (int *guild_id, int *idx, struct guild_position *p);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_position_changed_pre; hIndex++ ) {
@@ -23925,8 +23702,7 @@ int HP_guild_position_changed(int guild_id, int idx, struct guild_position *p) {
}
int HP_guild_change_notice(struct map_session_data *sd, int guild_id, const char *mes1, const char *mes2) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_change_notice_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *guild_id, const char *mes1, const char *mes2);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_change_notice_pre; hIndex++ ) {
@@ -23952,8 +23728,7 @@ int HP_guild_change_notice(struct map_session_data *sd, int guild_id, const char
}
int HP_guild_notice_changed(int guild_id, const char *mes1, const char *mes2) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_notice_changed_pre ) {
int (*preHookFunc) (int *guild_id, const char *mes1, const char *mes2);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_notice_changed_pre; hIndex++ ) {
@@ -23979,8 +23754,7 @@ int HP_guild_notice_changed(int guild_id, const char *mes1, const char *mes2) {
}
int HP_guild_change_emblem(struct map_session_data *sd, int len, const char *data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_change_emblem_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *len, const char *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_change_emblem_pre; hIndex++ ) {
@@ -24006,8 +23780,7 @@ int HP_guild_change_emblem(struct map_session_data *sd, int len, const char *dat
}
int HP_guild_emblem_changed(int len, int guild_id, int emblem_id, const char *data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_emblem_changed_pre ) {
int (*preHookFunc) (int *len, int *guild_id, int *emblem_id, const char *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_emblem_changed_pre; hIndex++ ) {
@@ -24033,8 +23806,7 @@ int HP_guild_emblem_changed(int len, int guild_id, int emblem_id, const char *da
}
int HP_guild_send_message(struct map_session_data *sd, const char *mes, int len) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_send_message_pre ) {
int (*preHookFunc) (struct map_session_data *sd, const char *mes, int *len);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_send_message_pre; hIndex++ ) {
@@ -24060,8 +23832,7 @@ int HP_guild_send_message(struct map_session_data *sd, const char *mes, int len)
}
int HP_guild_recv_message(int guild_id, int account_id, const char *mes, int len) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_recv_message_pre ) {
int (*preHookFunc) (int *guild_id, int *account_id, const char *mes, int *len);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_recv_message_pre; hIndex++ ) {
@@ -24087,8 +23858,7 @@ int HP_guild_recv_message(int guild_id, int account_id, const char *mes, int len
}
int HP_guild_send_dot_remove(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_send_dot_remove_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_send_dot_remove_pre; hIndex++ ) {
@@ -24114,8 +23884,7 @@ int HP_guild_send_dot_remove(struct map_session_data *sd) {
}
int HP_guild_skillupack(int guild_id, uint16 skill_id, int account_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_skillupack_pre ) {
int (*preHookFunc) (int *guild_id, uint16 *skill_id, int *account_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_skillupack_pre; hIndex++ ) {
@@ -24141,8 +23910,7 @@ int HP_guild_skillupack(int guild_id, uint16 skill_id, int account_id) {
}
int HP_guild_dobreak(struct map_session_data *sd, char *name) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_dobreak_pre ) {
int (*preHookFunc) (struct map_session_data *sd, char *name);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_dobreak_pre; hIndex++ ) {
@@ -24168,8 +23936,7 @@ int HP_guild_dobreak(struct map_session_data *sd, char *name) {
}
int HP_guild_broken(int guild_id, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_broken_pre ) {
int (*preHookFunc) (int *guild_id, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_broken_pre; hIndex++ ) {
@@ -24195,8 +23962,7 @@ int HP_guild_broken(int guild_id, int flag) {
}
int HP_guild_gm_change(int guild_id, struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_gm_change_pre ) {
int (*preHookFunc) (int *guild_id, struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_gm_change_pre; hIndex++ ) {
@@ -24222,8 +23988,7 @@ int HP_guild_gm_change(int guild_id, struct map_session_data *sd) {
}
int HP_guild_gm_changed(int guild_id, int account_id, int char_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_gm_changed_pre ) {
int (*preHookFunc) (int *guild_id, int *account_id, int *char_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_gm_changed_pre; hIndex++ ) {
@@ -24274,8 +24039,7 @@ void HP_guild_castle_map_init(void) {
}
int HP_guild_castledatasave(int castle_id, int index, int value) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_castledatasave_pre ) {
int (*preHookFunc) (int *castle_id, int *index, int *value);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_castledatasave_pre; hIndex++ ) {
@@ -24301,8 +24065,7 @@ int HP_guild_castledatasave(int castle_id, int index, int value) {
}
int HP_guild_castledataloadack(int len, struct guild_castle *gc) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_castledataloadack_pre ) {
int (*preHookFunc) (int *len, struct guild_castle *gc);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_castledataloadack_pre; hIndex++ ) {
@@ -24553,8 +24316,7 @@ void HP_guild_aura_refresh(struct map_session_data *sd, uint16 skill_id, uint16
}
int HP_guild_payexp_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_payexp_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_payexp_timer_pre; hIndex++ ) {
@@ -24606,8 +24368,7 @@ TBL_PC* HP_guild_sd_check(int guild_id, int account_id, int char_id) {
}
bool HP_guild_read_guildskill_tree_db(char *split[], int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_guild_read_guildskill_tree_db_pre ) {
bool (*preHookFunc) (char *split[], int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_read_guildskill_tree_db_pre; hIndex++ ) {
@@ -24633,8 +24394,7 @@ bool HP_guild_read_guildskill_tree_db(char *split[], int columns, int current) {
}
bool HP_guild_read_castledb(char *str[], int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_guild_read_castledb_pre ) {
bool (*preHookFunc) (char *str[], int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_read_castledb_pre; hIndex++ ) {
@@ -24660,8 +24420,7 @@ bool HP_guild_read_castledb(char *str[], int columns, int current) {
}
int HP_guild_payexp_timer_sub(DBKey key, DBData *data, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_payexp_timer_sub_pre ) {
int (*preHookFunc) (DBKey *key, DBData *data, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_payexp_timer_sub_pre; hIndex++ ) {
@@ -24693,8 +24452,7 @@ int HP_guild_payexp_timer_sub(DBKey key, DBData *data, va_list ap) {
}
int HP_guild_send_xy_timer_sub(DBKey key, DBData *data, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_send_xy_timer_sub_pre ) {
int (*preHookFunc) (DBKey *key, DBData *data, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_send_xy_timer_sub_pre; hIndex++ ) {
@@ -24726,8 +24484,7 @@ int HP_guild_send_xy_timer_sub(DBKey key, DBData *data, va_list ap) {
}
int HP_guild_send_xy_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_send_xy_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_send_xy_timer_pre; hIndex++ ) {
@@ -24786,8 +24543,7 @@ DBData HP_guild_create_expcache(DBKey key, va_list args) {
}
int HP_guild_eventlist_db_final(DBKey key, DBData *data, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_eventlist_db_final_pre ) {
int (*preHookFunc) (DBKey *key, DBData *data, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_eventlist_db_final_pre; hIndex++ ) {
@@ -24819,8 +24575,7 @@ int HP_guild_eventlist_db_final(DBKey key, DBData *data, va_list ap) {
}
int HP_guild_expcache_db_final(DBKey key, DBData *data, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_expcache_db_final_pre ) {
int (*preHookFunc) (DBKey *key, DBData *data, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_expcache_db_final_pre; hIndex++ ) {
@@ -24852,8 +24607,7 @@ int HP_guild_expcache_db_final(DBKey key, DBData *data, va_list ap) {
}
int HP_guild_castle_db_final(DBKey key, DBData *data, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_castle_db_final_pre ) {
int (*preHookFunc) (DBKey *key, DBData *data, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_castle_db_final_pre; hIndex++ ) {
@@ -24885,8 +24639,7 @@ int HP_guild_castle_db_final(DBKey key, DBData *data, va_list ap) {
}
int HP_guild_broken_sub(DBKey key, DBData *data, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_broken_sub_pre ) {
int (*preHookFunc) (DBKey *key, DBData *data, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_broken_sub_pre; hIndex++ ) {
@@ -24918,8 +24671,7 @@ int HP_guild_broken_sub(DBKey key, DBData *data, va_list ap) {
}
int HP_guild_castle_broken_sub(DBKey key, DBData *data, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_castle_broken_sub_pre ) {
int (*preHookFunc) (DBKey *key, DBData *data, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_castle_broken_sub_pre; hIndex++ ) {
@@ -24976,8 +24728,7 @@ void HP_guild_makemember(struct guild_member *m, struct map_session_data *sd) {
}
int HP_guild_check_member(struct guild *g) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_check_member_pre ) {
int (*preHookFunc) (struct guild *g);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_check_member_pre; hIndex++ ) {
@@ -25003,8 +24754,7 @@ int HP_guild_check_member(struct guild *g) {
}
int HP_guild_get_alliance_count(struct guild *g, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_guild_get_alliance_count_pre ) {
int (*preHookFunc) (struct guild *g, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_guild_get_alliance_count_pre; hIndex++ ) {
@@ -25164,8 +24914,7 @@ void HP_gstorage_final(void) {
}
int HP_gstorage_delete(int guild_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_gstorage_delete_pre ) {
int (*preHookFunc) (int *guild_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_delete_pre; hIndex++ ) {
@@ -25191,8 +24940,7 @@ int HP_gstorage_delete(int guild_id) {
}
int HP_gstorage_open(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_gstorage_open_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_open_pre; hIndex++ ) {
@@ -25218,8 +24966,7 @@ int HP_gstorage_open(struct map_session_data *sd) {
}
int HP_gstorage_additem(struct map_session_data *sd, struct guild_storage *stor, struct item *item_data, int amount) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_gstorage_additem_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct guild_storage *stor, struct item *item_data, int *amount);
for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_additem_pre; hIndex++ ) {
@@ -25245,8 +24992,7 @@ int HP_gstorage_additem(struct map_session_data *sd, struct guild_storage *stor,
}
int HP_gstorage_delitem(struct map_session_data *sd, struct guild_storage *stor, int n, int amount) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_gstorage_delitem_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct guild_storage *stor, int *n, int *amount);
for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_delitem_pre; hIndex++ ) {
@@ -25272,8 +25018,7 @@ int HP_gstorage_delitem(struct map_session_data *sd, struct guild_storage *stor,
}
int HP_gstorage_add(struct map_session_data *sd, int index, int amount) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_gstorage_add_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *index, int *amount);
for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_add_pre; hIndex++ ) {
@@ -25299,8 +25044,7 @@ int HP_gstorage_add(struct map_session_data *sd, int index, int amount) {
}
int HP_gstorage_get(struct map_session_data *sd, int index, int amount) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_gstorage_get_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *index, int *amount);
for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_get_pre; hIndex++ ) {
@@ -25326,8 +25070,7 @@ int HP_gstorage_get(struct map_session_data *sd, int index, int amount) {
}
int HP_gstorage_addfromcart(struct map_session_data *sd, int index, int amount) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_gstorage_addfromcart_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *index, int *amount);
for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_addfromcart_pre; hIndex++ ) {
@@ -25353,8 +25096,7 @@ int HP_gstorage_addfromcart(struct map_session_data *sd, int index, int amount)
}
int HP_gstorage_gettocart(struct map_session_data *sd, int index, int amount) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_gstorage_gettocart_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *index, int *amount);
for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_gettocart_pre; hIndex++ ) {
@@ -25380,8 +25122,7 @@ int HP_gstorage_gettocart(struct map_session_data *sd, int index, int amount) {
}
int HP_gstorage_close(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_gstorage_close_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_close_pre; hIndex++ ) {
@@ -25407,8 +25148,7 @@ int HP_gstorage_close(struct map_session_data *sd) {
}
int HP_gstorage_pc_quit(struct map_session_data *sd, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_gstorage_pc_quit_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_pc_quit_pre; hIndex++ ) {
@@ -25434,8 +25174,7 @@ int HP_gstorage_pc_quit(struct map_session_data *sd, int flag) {
}
int HP_gstorage_save(int account_id, int guild_id, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_gstorage_save_pre ) {
int (*preHookFunc) (int *account_id, int *guild_id, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_save_pre; hIndex++ ) {
@@ -25461,8 +25200,7 @@ int HP_gstorage_save(int account_id, int guild_id, int flag) {
}
int HP_gstorage_saved(int guild_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_gstorage_saved_pre ) {
int (*preHookFunc) (int *guild_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_gstorage_saved_pre; hIndex++ ) {
@@ -25648,8 +25386,7 @@ struct view_data* HP_homun_get_viewdata(int class_) {
}
enum homun_type HP_homun_class2type(int class_) {
int hIndex = 0;
- enum homun_type retVal___;
- memset(&retVal___, '\0', sizeof(enum homun_type));
+ enum homun_type retVal___ = HT_INVALID;
if( HPMHooks.count.HP_homun_class2type_pre ) {
enum homun_type (*preHookFunc) (int *class_);
for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_class2type_pre; hIndex++ ) {
@@ -25700,8 +25437,7 @@ void HP_homun_damaged(struct homun_data *hd) {
}
int HP_homun_dead(struct homun_data *hd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_homun_dead_pre ) {
int (*preHookFunc) (struct homun_data *hd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_dead_pre; hIndex++ ) {
@@ -25727,8 +25463,7 @@ int HP_homun_dead(struct homun_data *hd) {
}
int HP_homun_vaporize(struct map_session_data *sd, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_homun_vaporize_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_vaporize_pre; hIndex++ ) {
@@ -25754,8 +25489,7 @@ int HP_homun_vaporize(struct map_session_data *sd, int flag) {
}
int HP_homun_delete(struct homun_data *hd, int emote) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_homun_delete_pre ) {
int (*preHookFunc) (struct homun_data *hd, int *emote);
for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_delete_pre; hIndex++ ) {
@@ -25781,8 +25515,7 @@ int HP_homun_delete(struct homun_data *hd, int emote) {
}
int HP_homun_checkskill(struct homun_data *hd, uint16 skill_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_homun_checkskill_pre ) {
int (*preHookFunc) (struct homun_data *hd, uint16 *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_checkskill_pre; hIndex++ ) {
@@ -25808,8 +25541,7 @@ int HP_homun_checkskill(struct homun_data *hd, uint16 skill_id) {
}
int HP_homun_calc_skilltree(struct homun_data *hd, int flag_evolve) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_homun_calc_skilltree_pre ) {
int (*preHookFunc) (struct homun_data *hd, int *flag_evolve);
for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_calc_skilltree_pre; hIndex++ ) {
@@ -25835,8 +25567,7 @@ int HP_homun_calc_skilltree(struct homun_data *hd, int flag_evolve) {
}
int HP_homun_skill_tree_get_max(int id, int b_class) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_homun_skill_tree_get_max_pre ) {
int (*preHookFunc) (int *id, int *b_class);
for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_skill_tree_get_max_pre; hIndex++ ) {
@@ -25887,8 +25618,7 @@ void HP_homun_skillup(struct homun_data *hd, uint16 skill_id) {
}
bool HP_homun_levelup(struct homun_data *hd) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_homun_levelup_pre ) {
bool (*preHookFunc) (struct homun_data *hd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_levelup_pre; hIndex++ ) {
@@ -25914,8 +25644,7 @@ bool HP_homun_levelup(struct homun_data *hd) {
}
int HP_homun_change_class(struct homun_data *hd, short class_) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_homun_change_class_pre ) {
int (*preHookFunc) (struct homun_data *hd, short *class_);
for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_change_class_pre; hIndex++ ) {
@@ -25941,8 +25670,7 @@ int HP_homun_change_class(struct homun_data *hd, short class_) {
}
bool HP_homun_evolve(struct homun_data *hd) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_homun_evolve_pre ) {
bool (*preHookFunc) (struct homun_data *hd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_evolve_pre; hIndex++ ) {
@@ -25968,8 +25696,7 @@ bool HP_homun_evolve(struct homun_data *hd) {
}
bool HP_homun_mutate(struct homun_data *hd, int homun_id) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_homun_mutate_pre ) {
bool (*preHookFunc) (struct homun_data *hd, int *homun_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_mutate_pre; hIndex++ ) {
@@ -25995,8 +25722,7 @@ bool HP_homun_mutate(struct homun_data *hd, int homun_id) {
}
int HP_homun_gainexp(struct homun_data *hd, unsigned int exp) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_homun_gainexp_pre ) {
int (*preHookFunc) (struct homun_data *hd, unsigned int *exp);
for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_gainexp_pre; hIndex++ ) {
@@ -26022,8 +25748,7 @@ int HP_homun_gainexp(struct homun_data *hd, unsigned int exp) {
}
unsigned int HP_homun_add_intimacy(struct homun_data *hd, unsigned int value) {
int hIndex = 0;
- unsigned int retVal___;
- memset(&retVal___, '\0', sizeof(unsigned int));
+ unsigned int retVal___ = 0;
if( HPMHooks.count.HP_homun_add_intimacy_pre ) {
unsigned int (*preHookFunc) (struct homun_data *hd, unsigned int *value);
for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_add_intimacy_pre; hIndex++ ) {
@@ -26049,8 +25774,7 @@ unsigned int HP_homun_add_intimacy(struct homun_data *hd, unsigned int value) {
}
unsigned int HP_homun_consume_intimacy(struct homun_data *hd, unsigned int value) {
int hIndex = 0;
- unsigned int retVal___;
- memset(&retVal___, '\0', sizeof(unsigned int));
+ unsigned int retVal___ = 0;
if( HPMHooks.count.HP_homun_consume_intimacy_pre ) {
unsigned int (*preHookFunc) (struct homun_data *hd, unsigned int *value);
for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_consume_intimacy_pre; hIndex++ ) {
@@ -26126,8 +25850,7 @@ void HP_homun_save(struct homun_data *hd) {
}
unsigned char HP_homun_menu(struct map_session_data *sd, unsigned char menu_num) {
int hIndex = 0;
- unsigned char retVal___;
- memset(&retVal___, '\0', sizeof(unsigned char));
+ unsigned char retVal___ = 0;
if( HPMHooks.count.HP_homun_menu_pre ) {
unsigned char (*preHookFunc) (struct map_session_data *sd, unsigned char *menu_num);
for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_menu_pre; hIndex++ ) {
@@ -26153,8 +25876,7 @@ unsigned char HP_homun_menu(struct map_session_data *sd, unsigned char menu_num)
}
bool HP_homun_feed(struct map_session_data *sd, struct homun_data *hd) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_homun_feed_pre ) {
bool (*preHookFunc) (struct map_session_data *sd, struct homun_data *hd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_feed_pre; hIndex++ ) {
@@ -26180,8 +25902,7 @@ bool HP_homun_feed(struct map_session_data *sd, struct homun_data *hd) {
}
int HP_homun_hunger_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_homun_hunger_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_hunger_timer_pre; hIndex++ ) {
@@ -26232,8 +25953,7 @@ void HP_homun_hunger_timer_delete(struct homun_data *hd) {
}
int HP_homun_change_name(struct map_session_data *sd, char *name) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_homun_change_name_pre ) {
int (*preHookFunc) (struct map_session_data *sd, char *name);
for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_change_name_pre; hIndex++ ) {
@@ -26259,8 +25979,7 @@ int HP_homun_change_name(struct map_session_data *sd, char *name) {
}
bool HP_homun_change_name_ack(struct map_session_data *sd, char *name, int flag) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_homun_change_name_ack_pre ) {
bool (*preHookFunc) (struct map_session_data *sd, char *name, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_change_name_ack_pre; hIndex++ ) {
@@ -26286,8 +26005,7 @@ bool HP_homun_change_name_ack(struct map_session_data *sd, char *name, int flag)
}
int HP_homun_db_search(int key, int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_homun_db_search_pre ) {
int (*preHookFunc) (int *key, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_db_search_pre; hIndex++ ) {
@@ -26313,8 +26031,7 @@ int HP_homun_db_search(int key, int type) {
}
bool HP_homun_create(struct map_session_data *sd, struct s_homunculus *hom) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_homun_create_pre ) {
bool (*preHookFunc) (struct map_session_data *sd, struct s_homunculus *hom);
for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_create_pre; hIndex++ ) {
@@ -26365,8 +26082,7 @@ void HP_homun_init_timers(struct homun_data *hd) {
}
bool HP_homun_call(struct map_session_data *sd) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_homun_call_pre ) {
bool (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_call_pre; hIndex++ ) {
@@ -26392,8 +26108,7 @@ bool HP_homun_call(struct map_session_data *sd) {
}
bool HP_homun_recv_data(int account_id, struct s_homunculus *sh, int flag) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_homun_recv_data_pre ) {
bool (*preHookFunc) (int *account_id, struct s_homunculus *sh, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_recv_data_pre; hIndex++ ) {
@@ -26419,8 +26134,7 @@ bool HP_homun_recv_data(int account_id, struct s_homunculus *sh, int flag) {
}
bool HP_homun_creation_request(struct map_session_data *sd, int class_) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_homun_creation_request_pre ) {
bool (*preHookFunc) (struct map_session_data *sd, int *class_);
for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_creation_request_pre; hIndex++ ) {
@@ -26446,8 +26160,7 @@ bool HP_homun_creation_request(struct map_session_data *sd, int class_) {
}
bool HP_homun_ressurect(struct map_session_data *sd, unsigned char per, short x, short y) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_homun_ressurect_pre ) {
bool (*preHookFunc) (struct map_session_data *sd, unsigned char *per, short *x, short *y);
for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_ressurect_pre; hIndex++ ) {
@@ -26523,8 +26236,7 @@ void HP_homun_stat_reset(struct homun_data *hd) {
}
bool HP_homun_shuffle(struct homun_data *hd) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_homun_shuffle_pre ) {
bool (*preHookFunc) (struct homun_data *hd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_shuffle_pre; hIndex++ ) {
@@ -26550,8 +26262,7 @@ bool HP_homun_shuffle(struct homun_data *hd) {
}
bool HP_homun_read_db_sub(char *str[], int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_homun_read_db_sub_pre ) {
bool (*preHookFunc) (char *str[], int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_read_db_sub_pre; hIndex++ ) {
@@ -26602,8 +26313,7 @@ void HP_homun_read_db(void) {
}
bool HP_homun_read_skill_db_sub(char *split[], int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_homun_read_skill_db_sub_pre ) {
bool (*preHookFunc) (char *split[], int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_homun_read_skill_db_sub_pre; hIndex++ ) {
@@ -26780,8 +26490,7 @@ void HP_instance_final(void) {
}
int HP_instance_create(int party_id, const char *name, enum instance_owner_type type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_instance_create_pre ) {
int (*preHookFunc) (int *party_id, const char *name, enum instance_owner_type *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_instance_create_pre; hIndex++ ) {
@@ -26807,8 +26516,7 @@ int HP_instance_create(int party_id, const char *name, enum instance_owner_type
}
int HP_instance_add_map(const char *name, int instance_id, bool usebasename, const char *map_name) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_instance_add_map_pre ) {
int (*preHookFunc) (const char *name, int *instance_id, bool *usebasename, const char *map_name);
for(hIndex = 0; hIndex < HPMHooks.count.HP_instance_add_map_pre; hIndex++ ) {
@@ -26859,8 +26567,7 @@ void HP_instance_del_map(int16 m) {
}
int HP_instance_map2imap(int16 m, int instance_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_instance_map2imap_pre ) {
int (*preHookFunc) (int16 *m, int *instance_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_instance_map2imap_pre; hIndex++ ) {
@@ -26886,8 +26593,7 @@ int HP_instance_map2imap(int16 m, int instance_id) {
}
int HP_instance_mapid2imapid(int16 m, int instance_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_instance_mapid2imapid_pre ) {
int (*preHookFunc) (int16 *m, int *instance_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_instance_mapid2imapid_pre; hIndex++ ) {
@@ -27038,8 +26744,7 @@ void HP_instance_set_timeout(int instance_id, unsigned int progress_timeout, uns
}
bool HP_instance_valid(int instance_id) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_instance_valid_pre ) {
bool (*preHookFunc) (int *instance_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_instance_valid_pre; hIndex++ ) {
@@ -27065,8 +26770,7 @@ bool HP_instance_valid(int instance_id) {
}
int HP_instance_destroy_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_instance_destroy_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_instance_destroy_timer_pre; hIndex++ ) {
@@ -27093,8 +26797,7 @@ int HP_instance_destroy_timer(int tid, unsigned int tick, int id, intptr_t data)
/* intif */
int HP_intif_parse(int fd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_parse_pre ) {
int (*preHookFunc) (int *fd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_parse_pre; hIndex++ ) {
@@ -27120,8 +26823,7 @@ int HP_intif_parse(int fd) {
}
int HP_intif_create_pet(int account_id, int char_id, short pet_type, short pet_lv, short pet_egg_id, short pet_equip, short intimate, short hungry, char rename_flag, char incuvate, char *pet_name) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_create_pet_pre ) {
int (*preHookFunc) (int *account_id, int *char_id, short *pet_type, short *pet_lv, short *pet_egg_id, short *pet_equip, short *intimate, short *hungry, char *rename_flag, char *incuvate, char *pet_name);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_create_pet_pre; hIndex++ ) {
@@ -27147,8 +26849,7 @@ int HP_intif_create_pet(int account_id, int char_id, short pet_type, short pet_l
}
int HP_intif_broadcast(const char *mes, int len, int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_broadcast_pre ) {
int (*preHookFunc) (const char *mes, int *len, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_broadcast_pre; hIndex++ ) {
@@ -27174,8 +26875,7 @@ int HP_intif_broadcast(const char *mes, int len, int type) {
}
int HP_intif_broadcast2(const char *mes, int len, unsigned long fontColor, short fontType, short fontSize, short fontAlign, short fontY) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_broadcast2_pre ) {
int (*preHookFunc) (const char *mes, int *len, unsigned long *fontColor, short *fontType, short *fontSize, short *fontAlign, short *fontY);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_broadcast2_pre; hIndex++ ) {
@@ -27201,8 +26901,7 @@ int HP_intif_broadcast2(const char *mes, int len, unsigned long fontColor, short
}
int HP_intif_main_message(struct map_session_data *sd, const char *message) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_main_message_pre ) {
int (*preHookFunc) (struct map_session_data *sd, const char *message);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_main_message_pre; hIndex++ ) {
@@ -27228,8 +26927,7 @@ int HP_intif_main_message(struct map_session_data *sd, const char *message) {
}
int HP_intif_wis_message(struct map_session_data *sd, char *nick, char *mes, int mes_len) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_wis_message_pre ) {
int (*preHookFunc) (struct map_session_data *sd, char *nick, char *mes, int *mes_len);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_wis_message_pre; hIndex++ ) {
@@ -27255,8 +26953,7 @@ int HP_intif_wis_message(struct map_session_data *sd, char *nick, char *mes, int
}
int HP_intif_wis_message_to_gm(char *Wisp_name, int permission, char *mes) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_wis_message_to_gm_pre ) {
int (*preHookFunc) (char *Wisp_name, int *permission, char *mes);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_wis_message_to_gm_pre; hIndex++ ) {
@@ -27282,8 +26979,7 @@ int HP_intif_wis_message_to_gm(char *Wisp_name, int permission, char *mes) {
}
int HP_intif_saveregistry(struct map_session_data *sd, int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_saveregistry_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_saveregistry_pre; hIndex++ ) {
@@ -27309,8 +27005,7 @@ int HP_intif_saveregistry(struct map_session_data *sd, int type) {
}
int HP_intif_request_registry(struct map_session_data *sd, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_request_registry_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_request_registry_pre; hIndex++ ) {
@@ -27336,8 +27031,7 @@ int HP_intif_request_registry(struct map_session_data *sd, int flag) {
}
int HP_intif_request_guild_storage(int account_id, int guild_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_request_guild_storage_pre ) {
int (*preHookFunc) (int *account_id, int *guild_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_request_guild_storage_pre; hIndex++ ) {
@@ -27363,8 +27057,7 @@ int HP_intif_request_guild_storage(int account_id, int guild_id) {
}
int HP_intif_send_guild_storage(int account_id, struct guild_storage *gstor) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_send_guild_storage_pre ) {
int (*preHookFunc) (int *account_id, struct guild_storage *gstor);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_send_guild_storage_pre; hIndex++ ) {
@@ -27390,8 +27083,7 @@ int HP_intif_send_guild_storage(int account_id, struct guild_storage *gstor) {
}
int HP_intif_create_party(struct party_member *member, char *name, int item, int item2) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_create_party_pre ) {
int (*preHookFunc) (struct party_member *member, char *name, int *item, int *item2);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_create_party_pre; hIndex++ ) {
@@ -27417,8 +27109,7 @@ int HP_intif_create_party(struct party_member *member, char *name, int item, int
}
int HP_intif_request_partyinfo(int party_id, int char_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_request_partyinfo_pre ) {
int (*preHookFunc) (int *party_id, int *char_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_request_partyinfo_pre; hIndex++ ) {
@@ -27444,8 +27135,7 @@ int HP_intif_request_partyinfo(int party_id, int char_id) {
}
int HP_intif_party_addmember(int party_id, struct party_member *member) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_party_addmember_pre ) {
int (*preHookFunc) (int *party_id, struct party_member *member);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_party_addmember_pre; hIndex++ ) {
@@ -27471,8 +27161,7 @@ int HP_intif_party_addmember(int party_id, struct party_member *member) {
}
int HP_intif_party_changeoption(int party_id, int account_id, int exp, int item) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_party_changeoption_pre ) {
int (*preHookFunc) (int *party_id, int *account_id, int *exp, int *item);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_party_changeoption_pre; hIndex++ ) {
@@ -27498,8 +27187,7 @@ int HP_intif_party_changeoption(int party_id, int account_id, int exp, int item)
}
int HP_intif_party_leave(int party_id, int account_id, int char_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_party_leave_pre ) {
int (*preHookFunc) (int *party_id, int *account_id, int *char_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_party_leave_pre; hIndex++ ) {
@@ -27525,8 +27213,7 @@ int HP_intif_party_leave(int party_id, int account_id, int char_id) {
}
int HP_intif_party_changemap(struct map_session_data *sd, int online) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_party_changemap_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *online);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_party_changemap_pre; hIndex++ ) {
@@ -27552,8 +27239,7 @@ int HP_intif_party_changemap(struct map_session_data *sd, int online) {
}
int HP_intif_break_party(int party_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_break_party_pre ) {
int (*preHookFunc) (int *party_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_break_party_pre; hIndex++ ) {
@@ -27579,8 +27265,7 @@ int HP_intif_break_party(int party_id) {
}
int HP_intif_party_message(int party_id, int account_id, const char *mes, int len) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_party_message_pre ) {
int (*preHookFunc) (int *party_id, int *account_id, const char *mes, int *len);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_party_message_pre; hIndex++ ) {
@@ -27606,8 +27291,7 @@ int HP_intif_party_message(int party_id, int account_id, const char *mes, int le
}
int HP_intif_party_leaderchange(int party_id, int account_id, int char_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_party_leaderchange_pre ) {
int (*preHookFunc) (int *party_id, int *account_id, int *char_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_party_leaderchange_pre; hIndex++ ) {
@@ -27633,8 +27317,7 @@ int HP_intif_party_leaderchange(int party_id, int account_id, int char_id) {
}
int HP_intif_guild_create(const char *name, const struct guild_member *master) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_guild_create_pre ) {
int (*preHookFunc) (const char *name, const struct guild_member *master);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_create_pre; hIndex++ ) {
@@ -27660,8 +27343,7 @@ int HP_intif_guild_create(const char *name, const struct guild_member *master) {
}
int HP_intif_guild_request_info(int guild_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_guild_request_info_pre ) {
int (*preHookFunc) (int *guild_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_request_info_pre; hIndex++ ) {
@@ -27687,8 +27369,7 @@ int HP_intif_guild_request_info(int guild_id) {
}
int HP_intif_guild_addmember(int guild_id, struct guild_member *m) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_guild_addmember_pre ) {
int (*preHookFunc) (int *guild_id, struct guild_member *m);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_addmember_pre; hIndex++ ) {
@@ -27714,8 +27395,7 @@ int HP_intif_guild_addmember(int guild_id, struct guild_member *m) {
}
int HP_intif_guild_leave(int guild_id, int account_id, int char_id, int flag, const char *mes) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_guild_leave_pre ) {
int (*preHookFunc) (int *guild_id, int *account_id, int *char_id, int *flag, const char *mes);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_leave_pre; hIndex++ ) {
@@ -27741,8 +27421,7 @@ int HP_intif_guild_leave(int guild_id, int account_id, int char_id, int flag, co
}
int HP_intif_guild_memberinfoshort(int guild_id, int account_id, int char_id, int online, int lv, int class_) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_guild_memberinfoshort_pre ) {
int (*preHookFunc) (int *guild_id, int *account_id, int *char_id, int *online, int *lv, int *class_);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_memberinfoshort_pre; hIndex++ ) {
@@ -27768,8 +27447,7 @@ int HP_intif_guild_memberinfoshort(int guild_id, int account_id, int char_id, in
}
int HP_intif_guild_break(int guild_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_guild_break_pre ) {
int (*preHookFunc) (int *guild_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_break_pre; hIndex++ ) {
@@ -27795,8 +27473,7 @@ int HP_intif_guild_break(int guild_id) {
}
int HP_intif_guild_message(int guild_id, int account_id, const char *mes, int len) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_guild_message_pre ) {
int (*preHookFunc) (int *guild_id, int *account_id, const char *mes, int *len);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_message_pre; hIndex++ ) {
@@ -27822,8 +27499,7 @@ int HP_intif_guild_message(int guild_id, int account_id, const char *mes, int le
}
int HP_intif_guild_change_gm(int guild_id, const char *name, int len) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_guild_change_gm_pre ) {
int (*preHookFunc) (int *guild_id, const char *name, int *len);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_change_gm_pre; hIndex++ ) {
@@ -27849,8 +27525,7 @@ int HP_intif_guild_change_gm(int guild_id, const char *name, int len) {
}
int HP_intif_guild_change_basicinfo(int guild_id, int type, const void *data, int len) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_guild_change_basicinfo_pre ) {
int (*preHookFunc) (int *guild_id, int *type, const void *data, int *len);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_change_basicinfo_pre; hIndex++ ) {
@@ -27876,8 +27551,7 @@ int HP_intif_guild_change_basicinfo(int guild_id, int type, const void *data, in
}
int HP_intif_guild_change_memberinfo(int guild_id, int account_id, int char_id, int type, const void *data, int len) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_guild_change_memberinfo_pre ) {
int (*preHookFunc) (int *guild_id, int *account_id, int *char_id, int *type, const void *data, int *len);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_change_memberinfo_pre; hIndex++ ) {
@@ -27903,8 +27577,7 @@ int HP_intif_guild_change_memberinfo(int guild_id, int account_id, int char_id,
}
int HP_intif_guild_position(int guild_id, int idx, struct guild_position *p) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_guild_position_pre ) {
int (*preHookFunc) (int *guild_id, int *idx, struct guild_position *p);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_position_pre; hIndex++ ) {
@@ -27930,8 +27603,7 @@ int HP_intif_guild_position(int guild_id, int idx, struct guild_position *p) {
}
int HP_intif_guild_skillup(int guild_id, uint16 skill_id, int account_id, int max) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_guild_skillup_pre ) {
int (*preHookFunc) (int *guild_id, uint16 *skill_id, int *account_id, int *max);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_skillup_pre; hIndex++ ) {
@@ -27957,8 +27629,7 @@ int HP_intif_guild_skillup(int guild_id, uint16 skill_id, int account_id, int ma
}
int HP_intif_guild_alliance(int guild_id1, int guild_id2, int account_id1, int account_id2, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_guild_alliance_pre ) {
int (*preHookFunc) (int *guild_id1, int *guild_id2, int *account_id1, int *account_id2, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_alliance_pre; hIndex++ ) {
@@ -27984,8 +27655,7 @@ int HP_intif_guild_alliance(int guild_id1, int guild_id2, int account_id1, int a
}
int HP_intif_guild_notice(int guild_id, const char *mes1, const char *mes2) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_guild_notice_pre ) {
int (*preHookFunc) (int *guild_id, const char *mes1, const char *mes2);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_notice_pre; hIndex++ ) {
@@ -28011,8 +27681,7 @@ int HP_intif_guild_notice(int guild_id, const char *mes1, const char *mes2) {
}
int HP_intif_guild_emblem(int guild_id, int len, const char *data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_guild_emblem_pre ) {
int (*preHookFunc) (int *guild_id, int *len, const char *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_emblem_pre; hIndex++ ) {
@@ -28038,8 +27707,7 @@ int HP_intif_guild_emblem(int guild_id, int len, const char *data) {
}
int HP_intif_guild_castle_dataload(int num, int *castle_ids) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_guild_castle_dataload_pre ) {
int (*preHookFunc) (int *num, int *castle_ids);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_castle_dataload_pre; hIndex++ ) {
@@ -28065,8 +27733,7 @@ int HP_intif_guild_castle_dataload(int num, int *castle_ids) {
}
int HP_intif_guild_castle_datasave(int castle_id, int index, int value) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_guild_castle_datasave_pre ) {
int (*preHookFunc) (int *castle_id, int *index, int *value);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_guild_castle_datasave_pre; hIndex++ ) {
@@ -28092,8 +27759,7 @@ int HP_intif_guild_castle_datasave(int castle_id, int index, int value) {
}
int HP_intif_request_petdata(int account_id, int char_id, int pet_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_request_petdata_pre ) {
int (*preHookFunc) (int *account_id, int *char_id, int *pet_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_request_petdata_pre; hIndex++ ) {
@@ -28119,8 +27785,7 @@ int HP_intif_request_petdata(int account_id, int char_id, int pet_id) {
}
int HP_intif_save_petdata(int account_id, struct s_pet *p) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_save_petdata_pre ) {
int (*preHookFunc) (int *account_id, struct s_pet *p);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_save_petdata_pre; hIndex++ ) {
@@ -28146,8 +27811,7 @@ int HP_intif_save_petdata(int account_id, struct s_pet *p) {
}
int HP_intif_delete_petdata(int pet_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_delete_petdata_pre ) {
int (*preHookFunc) (int *pet_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_delete_petdata_pre; hIndex++ ) {
@@ -28173,8 +27837,7 @@ int HP_intif_delete_petdata(int pet_id) {
}
int HP_intif_rename(struct map_session_data *sd, int type, char *name) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_rename_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *type, char *name);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_rename_pre; hIndex++ ) {
@@ -28200,8 +27863,7 @@ int HP_intif_rename(struct map_session_data *sd, int type, char *name) {
}
int HP_intif_homunculus_create(int account_id, struct s_homunculus *sh) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_homunculus_create_pre ) {
int (*preHookFunc) (int *account_id, struct s_homunculus *sh);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_homunculus_create_pre; hIndex++ ) {
@@ -28227,8 +27889,7 @@ int HP_intif_homunculus_create(int account_id, struct s_homunculus *sh) {
}
bool HP_intif_homunculus_requestload(int account_id, int homun_id) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_intif_homunculus_requestload_pre ) {
bool (*preHookFunc) (int *account_id, int *homun_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_homunculus_requestload_pre; hIndex++ ) {
@@ -28254,8 +27915,7 @@ bool HP_intif_homunculus_requestload(int account_id, int homun_id) {
}
int HP_intif_homunculus_requestsave(int account_id, struct s_homunculus *sh) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_homunculus_requestsave_pre ) {
int (*preHookFunc) (int *account_id, struct s_homunculus *sh);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_homunculus_requestsave_pre; hIndex++ ) {
@@ -28281,8 +27941,7 @@ int HP_intif_homunculus_requestsave(int account_id, struct s_homunculus *sh) {
}
int HP_intif_homunculus_requestdelete(int homun_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_homunculus_requestdelete_pre ) {
int (*preHookFunc) (int *homun_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_homunculus_requestdelete_pre; hIndex++ ) {
@@ -28308,8 +27967,7 @@ int HP_intif_homunculus_requestdelete(int homun_id) {
}
int HP_intif_request_questlog(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_request_questlog_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_request_questlog_pre; hIndex++ ) {
@@ -28335,8 +27993,7 @@ int HP_intif_request_questlog(struct map_session_data *sd) {
}
int HP_intif_quest_save(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_quest_save_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_quest_save_pre; hIndex++ ) {
@@ -28362,8 +28019,7 @@ int HP_intif_quest_save(struct map_session_data *sd) {
}
int HP_intif_mercenary_create(struct s_mercenary *merc) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_mercenary_create_pre ) {
int (*preHookFunc) (struct s_mercenary *merc);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_mercenary_create_pre; hIndex++ ) {
@@ -28389,8 +28045,7 @@ int HP_intif_mercenary_create(struct s_mercenary *merc) {
}
int HP_intif_mercenary_request(int merc_id, int char_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_mercenary_request_pre ) {
int (*preHookFunc) (int *merc_id, int *char_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_mercenary_request_pre; hIndex++ ) {
@@ -28416,8 +28071,7 @@ int HP_intif_mercenary_request(int merc_id, int char_id) {
}
int HP_intif_mercenary_delete(int merc_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_mercenary_delete_pre ) {
int (*preHookFunc) (int *merc_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_mercenary_delete_pre; hIndex++ ) {
@@ -28443,8 +28097,7 @@ int HP_intif_mercenary_delete(int merc_id) {
}
int HP_intif_mercenary_save(struct s_mercenary *merc) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_mercenary_save_pre ) {
int (*preHookFunc) (struct s_mercenary *merc);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_mercenary_save_pre; hIndex++ ) {
@@ -28470,8 +28123,7 @@ int HP_intif_mercenary_save(struct s_mercenary *merc) {
}
int HP_intif_Mail_requestinbox(int char_id, unsigned char flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_Mail_requestinbox_pre ) {
int (*preHookFunc) (int *char_id, unsigned char *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_Mail_requestinbox_pre; hIndex++ ) {
@@ -28497,8 +28149,7 @@ int HP_intif_Mail_requestinbox(int char_id, unsigned char flag) {
}
int HP_intif_Mail_read(int mail_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_Mail_read_pre ) {
int (*preHookFunc) (int *mail_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_Mail_read_pre; hIndex++ ) {
@@ -28524,8 +28175,7 @@ int HP_intif_Mail_read(int mail_id) {
}
int HP_intif_Mail_getattach(int char_id, int mail_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_Mail_getattach_pre ) {
int (*preHookFunc) (int *char_id, int *mail_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_Mail_getattach_pre; hIndex++ ) {
@@ -28551,8 +28201,7 @@ int HP_intif_Mail_getattach(int char_id, int mail_id) {
}
int HP_intif_Mail_delete(int char_id, int mail_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_Mail_delete_pre ) {
int (*preHookFunc) (int *char_id, int *mail_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_Mail_delete_pre; hIndex++ ) {
@@ -28578,8 +28227,7 @@ int HP_intif_Mail_delete(int char_id, int mail_id) {
}
int HP_intif_Mail_return(int char_id, int mail_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_Mail_return_pre ) {
int (*preHookFunc) (int *char_id, int *mail_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_Mail_return_pre; hIndex++ ) {
@@ -28605,8 +28253,7 @@ int HP_intif_Mail_return(int char_id, int mail_id) {
}
int HP_intif_Mail_send(int account_id, struct mail_message *msg) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_Mail_send_pre ) {
int (*preHookFunc) (int *account_id, struct mail_message *msg);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_Mail_send_pre; hIndex++ ) {
@@ -28632,8 +28279,7 @@ int HP_intif_Mail_send(int account_id, struct mail_message *msg) {
}
int HP_intif_Auction_requestlist(int char_id, short type, int price, const char *searchtext, short page) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_Auction_requestlist_pre ) {
int (*preHookFunc) (int *char_id, short *type, int *price, const char *searchtext, short *page);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_Auction_requestlist_pre; hIndex++ ) {
@@ -28659,8 +28305,7 @@ int HP_intif_Auction_requestlist(int char_id, short type, int price, const char
}
int HP_intif_Auction_register(struct auction_data *auction) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_Auction_register_pre ) {
int (*preHookFunc) (struct auction_data *auction);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_Auction_register_pre; hIndex++ ) {
@@ -28686,8 +28331,7 @@ int HP_intif_Auction_register(struct auction_data *auction) {
}
int HP_intif_Auction_cancel(int char_id, unsigned int auction_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_Auction_cancel_pre ) {
int (*preHookFunc) (int *char_id, unsigned int *auction_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_Auction_cancel_pre; hIndex++ ) {
@@ -28713,8 +28357,7 @@ int HP_intif_Auction_cancel(int char_id, unsigned int auction_id) {
}
int HP_intif_Auction_close(int char_id, unsigned int auction_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_Auction_close_pre ) {
int (*preHookFunc) (int *char_id, unsigned int *auction_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_Auction_close_pre; hIndex++ ) {
@@ -28740,8 +28383,7 @@ int HP_intif_Auction_close(int char_id, unsigned int auction_id) {
}
int HP_intif_Auction_bid(int char_id, const char *name, unsigned int auction_id, int bid) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_Auction_bid_pre ) {
int (*preHookFunc) (int *char_id, const char *name, unsigned int *auction_id, int *bid);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_Auction_bid_pre; hIndex++ ) {
@@ -28767,8 +28409,7 @@ int HP_intif_Auction_bid(int char_id, const char *name, unsigned int auction_id,
}
int HP_intif_elemental_create(struct s_elemental *ele) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_elemental_create_pre ) {
int (*preHookFunc) (struct s_elemental *ele);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_elemental_create_pre; hIndex++ ) {
@@ -28794,8 +28435,7 @@ int HP_intif_elemental_create(struct s_elemental *ele) {
}
int HP_intif_elemental_request(int ele_id, int char_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_elemental_request_pre ) {
int (*preHookFunc) (int *ele_id, int *char_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_elemental_request_pre; hIndex++ ) {
@@ -28821,8 +28461,7 @@ int HP_intif_elemental_request(int ele_id, int char_id) {
}
int HP_intif_elemental_delete(int ele_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_elemental_delete_pre ) {
int (*preHookFunc) (int *ele_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_elemental_delete_pre; hIndex++ ) {
@@ -28848,8 +28487,7 @@ int HP_intif_elemental_delete(int ele_id) {
}
int HP_intif_elemental_save(struct s_elemental *ele) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_elemental_save_pre ) {
int (*preHookFunc) (struct s_elemental *ele);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_elemental_save_pre; hIndex++ ) {
@@ -28900,8 +28538,7 @@ void HP_intif_request_accinfo(int u_fd, int aid, int group_lv, char *query) {
}
int HP_intif_CheckForCharServer(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_CheckForCharServer_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_CheckForCharServer_pre; hIndex++ ) {
@@ -28977,8 +28614,7 @@ void HP_intif_pWisEnd(int fd) {
}
int HP_intif_pWisToGM_sub(struct map_session_data *sd, va_list va) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_intif_pWisToGM_sub_pre ) {
int (*preHookFunc) (struct map_session_data *sd, va_list va);
for(hIndex = 0; hIndex < HPMHooks.count.HP_intif_pWisToGM_sub_pre; hIndex++ ) {
@@ -30511,8 +30147,7 @@ void HP_ircbot_final(void) {
}
int HP_ircbot_parse(int fd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_ircbot_parse_pre ) {
int (*preHookFunc) (int *fd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_ircbot_parse_pre; hIndex++ ) {
@@ -30614,8 +30249,7 @@ struct irc_func* HP_ircbot_func_search(char *function_name) {
}
int HP_ircbot_connect_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_ircbot_connect_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_ircbot_connect_timer_pre; hIndex++ ) {
@@ -30641,8 +30275,7 @@ int HP_ircbot_connect_timer(int tid, unsigned int tick, int id, intptr_t data) {
}
int HP_ircbot_identify_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_ircbot_identify_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_ircbot_identify_timer_pre; hIndex++ ) {
@@ -30668,8 +30301,7 @@ int HP_ircbot_identify_timer(int tid, unsigned int tick, int id, intptr_t data)
}
int HP_ircbot_join_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_ircbot_join_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_ircbot_join_timer_pre; hIndex++ ) {
@@ -31096,8 +30728,7 @@ void HP_itemdb_write_cached_packages(const char *config_filename) {
}
bool HP_itemdb_read_cached_packages(const char *config_filename) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_itemdb_read_cached_packages_pre ) {
bool (*preHookFunc) (const char *config_filename);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_read_cached_packages_pre; hIndex++ ) {
@@ -31175,8 +30806,7 @@ struct item_data* HP_itemdb_search_name(const char *name) {
}
int HP_itemdb_search_name_array(struct item_data **data, int size, const char *str, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_itemdb_search_name_array_pre ) {
int (*preHookFunc) (struct item_data **data, int *size, const char *str, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_search_name_array_pre; hIndex++ ) {
@@ -31254,8 +30884,7 @@ struct item_data* HP_itemdb_search(int nameid) {
}
int HP_itemdb_parse_dbrow(char **str, const char *source, int line, int scriptopt) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_itemdb_parse_dbrow_pre ) {
int (*preHookFunc) (char **str, const char *source, int *line, int *scriptopt);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_parse_dbrow_pre; hIndex++ ) {
@@ -31307,8 +30936,7 @@ struct item_data* HP_itemdb_exists(int nameid) {
}
bool HP_itemdb_in_group(struct item_group *group, int nameid) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_itemdb_in_group_pre ) {
bool (*preHookFunc) (struct item_group *group, int *nameid);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_in_group_pre; hIndex++ ) {
@@ -31334,8 +30962,7 @@ bool HP_itemdb_in_group(struct item_group *group, int nameid) {
}
int HP_itemdb_group_item(struct item_group *group) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_itemdb_group_item_pre ) {
int (*preHookFunc) (struct item_group *group);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_group_item_pre; hIndex++ ) {
@@ -31361,8 +30988,7 @@ int HP_itemdb_group_item(struct item_group *group) {
}
int HP_itemdb_chain_item(unsigned short chain_id, int *rate) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_itemdb_chain_item_pre ) {
int (*preHookFunc) (unsigned short *chain_id, int *rate);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_chain_item_pre; hIndex++ ) {
@@ -31413,8 +31039,7 @@ void HP_itemdb_package_item(struct map_session_data *sd, struct item_package *pa
}
int HP_itemdb_searchname_sub(DBKey key, DBData *data, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_itemdb_searchname_sub_pre ) {
int (*preHookFunc) (DBKey *key, DBData *data, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_searchname_sub_pre; hIndex++ ) {
@@ -31446,8 +31071,7 @@ int HP_itemdb_searchname_sub(DBKey key, DBData *data, va_list ap) {
}
int HP_itemdb_searchname_array_sub(DBKey key, DBData data, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_itemdb_searchname_array_sub_pre ) {
int (*preHookFunc) (DBKey *key, DBData *data, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_searchname_array_sub_pre; hIndex++ ) {
@@ -31479,8 +31103,7 @@ int HP_itemdb_searchname_array_sub(DBKey key, DBData data, va_list ap) {
}
int HP_itemdb_searchrandomid(struct item_group *group) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_itemdb_searchrandomid_pre ) {
int (*preHookFunc) (struct item_group *group);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_searchrandomid_pre; hIndex++ ) {
@@ -31608,8 +31231,7 @@ struct item_data* HP_itemdb_create_item_data(int nameid) {
}
int HP_itemdb_isequip(int nameid) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_itemdb_isequip_pre ) {
int (*preHookFunc) (int *nameid);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_isequip_pre; hIndex++ ) {
@@ -31635,8 +31257,7 @@ int HP_itemdb_isequip(int nameid) {
}
int HP_itemdb_isequip2(struct item_data *data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_itemdb_isequip2_pre ) {
int (*preHookFunc) (struct item_data *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_isequip2_pre; hIndex++ ) {
@@ -31662,8 +31283,7 @@ int HP_itemdb_isequip2(struct item_data *data) {
}
int HP_itemdb_isstackable(int nameid) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_itemdb_isstackable_pre ) {
int (*preHookFunc) (int *nameid);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_isstackable_pre; hIndex++ ) {
@@ -31689,8 +31309,7 @@ int HP_itemdb_isstackable(int nameid) {
}
int HP_itemdb_isstackable2(struct item_data *data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_itemdb_isstackable2_pre ) {
int (*preHookFunc) (struct item_data *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_isstackable2_pre; hIndex++ ) {
@@ -31716,8 +31335,7 @@ int HP_itemdb_isstackable2(struct item_data *data) {
}
int HP_itemdb_isdropable_sub(struct item_data *item, int gmlv, int unused) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_itemdb_isdropable_sub_pre ) {
int (*preHookFunc) (struct item_data *item, int *gmlv, int *unused);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_isdropable_sub_pre; hIndex++ ) {
@@ -31743,8 +31361,7 @@ int HP_itemdb_isdropable_sub(struct item_data *item, int gmlv, int unused) {
}
int HP_itemdb_cantrade_sub(struct item_data *item, int gmlv, int gmlv2) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_itemdb_cantrade_sub_pre ) {
int (*preHookFunc) (struct item_data *item, int *gmlv, int *gmlv2);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_cantrade_sub_pre; hIndex++ ) {
@@ -31770,8 +31387,7 @@ int HP_itemdb_cantrade_sub(struct item_data *item, int gmlv, int gmlv2) {
}
int HP_itemdb_canpartnertrade_sub(struct item_data *item, int gmlv, int gmlv2) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_itemdb_canpartnertrade_sub_pre ) {
int (*preHookFunc) (struct item_data *item, int *gmlv, int *gmlv2);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_canpartnertrade_sub_pre; hIndex++ ) {
@@ -31797,8 +31413,7 @@ int HP_itemdb_canpartnertrade_sub(struct item_data *item, int gmlv, int gmlv2) {
}
int HP_itemdb_cansell_sub(struct item_data *item, int gmlv, int unused) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_itemdb_cansell_sub_pre ) {
int (*preHookFunc) (struct item_data *item, int *gmlv, int *unused);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_cansell_sub_pre; hIndex++ ) {
@@ -31824,8 +31439,7 @@ int HP_itemdb_cansell_sub(struct item_data *item, int gmlv, int unused) {
}
int HP_itemdb_cancartstore_sub(struct item_data *item, int gmlv, int unused) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_itemdb_cancartstore_sub_pre ) {
int (*preHookFunc) (struct item_data *item, int *gmlv, int *unused);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_cancartstore_sub_pre; hIndex++ ) {
@@ -31851,8 +31465,7 @@ int HP_itemdb_cancartstore_sub(struct item_data *item, int gmlv, int unused) {
}
int HP_itemdb_canstore_sub(struct item_data *item, int gmlv, int unused) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_itemdb_canstore_sub_pre ) {
int (*preHookFunc) (struct item_data *item, int *gmlv, int *unused);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_canstore_sub_pre; hIndex++ ) {
@@ -31878,8 +31491,7 @@ int HP_itemdb_canstore_sub(struct item_data *item, int gmlv, int unused) {
}
int HP_itemdb_canguildstore_sub(struct item_data *item, int gmlv, int unused) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_itemdb_canguildstore_sub_pre ) {
int (*preHookFunc) (struct item_data *item, int *gmlv, int *unused);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_canguildstore_sub_pre; hIndex++ ) {
@@ -31905,8 +31517,7 @@ int HP_itemdb_canguildstore_sub(struct item_data *item, int gmlv, int unused) {
}
int HP_itemdb_canmail_sub(struct item_data *item, int gmlv, int unused) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_itemdb_canmail_sub_pre ) {
int (*preHookFunc) (struct item_data *item, int *gmlv, int *unused);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_canmail_sub_pre; hIndex++ ) {
@@ -31932,8 +31543,7 @@ int HP_itemdb_canmail_sub(struct item_data *item, int gmlv, int unused) {
}
int HP_itemdb_canauction_sub(struct item_data *item, int gmlv, int unused) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_itemdb_canauction_sub_pre ) {
int (*preHookFunc) (struct item_data *item, int *gmlv, int *unused);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_canauction_sub_pre; hIndex++ ) {
@@ -31959,8 +31569,7 @@ int HP_itemdb_canauction_sub(struct item_data *item, int gmlv, int unused) {
}
int HP_itemdb_isrestricted(struct item *item, int gmlv, int gmlv2, int ( *func ) (struct item_data *, int, int)) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_itemdb_isrestricted_pre ) {
int (*preHookFunc) (struct item *item, int *gmlv, int *gmlv2, int ( *func ) (struct item_data *, int, int));
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_isrestricted_pre; hIndex++ ) {
@@ -31986,8 +31595,7 @@ int HP_itemdb_isrestricted(struct item *item, int gmlv, int gmlv2, int ( *func )
}
int HP_itemdb_isidentified(int nameid) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_itemdb_isidentified_pre ) {
int (*preHookFunc) (int *nameid);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_isidentified_pre; hIndex++ ) {
@@ -32013,8 +31621,7 @@ int HP_itemdb_isidentified(int nameid) {
}
int HP_itemdb_isidentified2(struct item_data *data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_itemdb_isidentified2_pre ) {
int (*preHookFunc) (struct item_data *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_isidentified2_pre; hIndex++ ) {
@@ -32040,8 +31647,7 @@ int HP_itemdb_isidentified2(struct item_data *data) {
}
bool HP_itemdb_read_itemavail(char *str[], int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_itemdb_read_itemavail_pre ) {
bool (*preHookFunc) (char *str[], int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_read_itemavail_pre; hIndex++ ) {
@@ -32067,8 +31673,7 @@ bool HP_itemdb_read_itemavail(char *str[], int columns, int current) {
}
bool HP_itemdb_read_itemtrade(char *str[], int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_itemdb_read_itemtrade_pre ) {
bool (*preHookFunc) (char *str[], int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_read_itemtrade_pre; hIndex++ ) {
@@ -32094,8 +31699,7 @@ bool HP_itemdb_read_itemtrade(char *str[], int columns, int current) {
}
bool HP_itemdb_read_itemdelay(char *str[], int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_itemdb_read_itemdelay_pre ) {
bool (*preHookFunc) (char *str[], int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_read_itemdelay_pre; hIndex++ ) {
@@ -32121,8 +31725,7 @@ bool HP_itemdb_read_itemdelay(char *str[], int columns, int current) {
}
bool HP_itemdb_read_stack(char *fields[], int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_itemdb_read_stack_pre ) {
bool (*preHookFunc) (char *fields[], int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_read_stack_pre; hIndex++ ) {
@@ -32148,8 +31751,7 @@ bool HP_itemdb_read_stack(char *fields[], int columns, int current) {
}
bool HP_itemdb_read_buyingstore(char *fields[], int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_itemdb_read_buyingstore_pre ) {
bool (*preHookFunc) (char *fields[], int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_read_buyingstore_pre; hIndex++ ) {
@@ -32175,8 +31777,7 @@ bool HP_itemdb_read_buyingstore(char *fields[], int columns, int current) {
}
bool HP_itemdb_read_nouse(char *fields[], int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_itemdb_read_nouse_pre ) {
bool (*preHookFunc) (char *fields[], int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_read_nouse_pre; hIndex++ ) {
@@ -32202,8 +31803,7 @@ bool HP_itemdb_read_nouse(char *fields[], int columns, int current) {
}
int HP_itemdb_combo_split_atoi(char *str, int *val) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_itemdb_combo_split_atoi_pre ) {
int (*preHookFunc) (char *str, int *val);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_combo_split_atoi_pre; hIndex++ ) {
@@ -32254,8 +31854,7 @@ void HP_itemdb_read_combos(void) {
}
int HP_itemdb_gendercheck(struct item_data *id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_itemdb_gendercheck_pre ) {
int (*preHookFunc) (struct item_data *id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_gendercheck_pre; hIndex++ ) {
@@ -32306,8 +31905,7 @@ void HP_itemdb_re_split_atoi(char *str, int *atk, int *matk) {
}
int HP_itemdb_readdb(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_itemdb_readdb_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_readdb_pre; hIndex++ ) {
@@ -32333,8 +31931,7 @@ int HP_itemdb_readdb(void) {
}
int HP_itemdb_read_sqldb(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_itemdb_read_sqldb_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_read_sqldb_pre; hIndex++ ) {
@@ -32360,8 +31957,7 @@ int HP_itemdb_read_sqldb(void) {
}
uint64 HP_itemdb_unique_id(int8 flag, int64 value) {
int hIndex = 0;
- uint64 retVal___;
- memset(&retVal___, '\0', sizeof(uint64));
+ uint64 retVal___ = 0;
if( HPMHooks.count.HP_itemdb_unique_id_pre ) {
uint64 (*preHookFunc) (int8 *flag, int64 *value);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_unique_id_pre; hIndex++ ) {
@@ -32387,8 +31983,7 @@ uint64 HP_itemdb_unique_id(int8 flag, int64 value) {
}
int HP_itemdb_uid_load(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_itemdb_uid_load_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_uid_load_pre; hIndex++ ) {
@@ -32464,8 +32059,7 @@ void HP_itemdb_destroy_item_data(struct item_data *self, int free_self) {
}
int HP_itemdb_final_sub(DBKey key, DBData *data, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_itemdb_final_sub_pre ) {
int (*preHookFunc) (DBKey *key, DBData *data, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_final_sub_pre; hIndex++ ) {
@@ -32873,8 +32467,7 @@ void HP_logs_mvpdrop_sub(struct map_session_data *sd, int monster_id, int *log_m
}
int HP_logs_config_read(const char *cfgName) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_logs_config_read_pre ) {
int (*preHookFunc) (const char *cfgName);
for(hIndex = 0; hIndex < HPMHooks.count.HP_logs_config_read_pre; hIndex++ ) {
@@ -32975,8 +32568,7 @@ void HP_logs_sql_final(void) {
}
char HP_logs_picktype2char(e_log_pick_type type) {
int hIndex = 0;
- char retVal___;
- memset(&retVal___, '\0', sizeof(char));
+ char retVal___ = 0;
if( HPMHooks.count.HP_logs_picktype2char_pre ) {
char (*preHookFunc) (e_log_pick_type *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_logs_picktype2char_pre; hIndex++ ) {
@@ -33002,8 +32594,7 @@ char HP_logs_picktype2char(e_log_pick_type type) {
}
char HP_logs_chattype2char(e_log_chat_type type) {
int hIndex = 0;
- char retVal___;
- memset(&retVal___, '\0', sizeof(char));
+ char retVal___ = 0;
if( HPMHooks.count.HP_logs_chattype2char_pre ) {
char (*preHookFunc) (e_log_chat_type *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_logs_chattype2char_pre; hIndex++ ) {
@@ -33029,8 +32620,7 @@ char HP_logs_chattype2char(e_log_chat_type type) {
}
bool HP_logs_should_log_item(int nameid, int amount, int refine, struct item_data *id) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_logs_should_log_item_pre ) {
bool (*preHookFunc) (int *nameid, int *amount, int *refine, struct item_data *id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_logs_should_log_item_pre; hIndex++ ) {
@@ -33082,8 +32672,7 @@ void HP_mail_clear(struct map_session_data *sd) {
}
int HP_mail_removeitem(struct map_session_data *sd, short flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mail_removeitem_pre ) {
int (*preHookFunc) (struct map_session_data *sd, short *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mail_removeitem_pre; hIndex++ ) {
@@ -33109,8 +32698,7 @@ int HP_mail_removeitem(struct map_session_data *sd, short flag) {
}
int HP_mail_removezeny(struct map_session_data *sd, short flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mail_removezeny_pre ) {
int (*preHookFunc) (struct map_session_data *sd, short *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mail_removezeny_pre; hIndex++ ) {
@@ -33136,8 +32724,7 @@ int HP_mail_removezeny(struct map_session_data *sd, short flag) {
}
unsigned char HP_mail_setitem(struct map_session_data *sd, int idx, int amount) {
int hIndex = 0;
- unsigned char retVal___;
- memset(&retVal___, '\0', sizeof(unsigned char));
+ unsigned char retVal___ = 0;
if( HPMHooks.count.HP_mail_setitem_pre ) {
unsigned char (*preHookFunc) (struct map_session_data *sd, int *idx, int *amount);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mail_setitem_pre; hIndex++ ) {
@@ -33163,8 +32750,7 @@ unsigned char HP_mail_setitem(struct map_session_data *sd, int idx, int amount)
}
bool HP_mail_setattachment(struct map_session_data *sd, struct mail_message *msg) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_mail_setattachment_pre ) {
bool (*preHookFunc) (struct map_session_data *sd, struct mail_message *msg);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mail_setattachment_pre; hIndex++ ) {
@@ -33215,8 +32801,7 @@ void HP_mail_getattachment(struct map_session_data *sd, int zeny, struct item *i
}
int HP_mail_openmail(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mail_openmail_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mail_openmail_pre; hIndex++ ) {
@@ -33267,8 +32852,7 @@ void HP_mail_deliveryfail(struct map_session_data *sd, struct mail_message *msg)
}
bool HP_mail_invalid_operation(struct map_session_data *sd) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_mail_invalid_operation_pre ) {
bool (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mail_invalid_operation_pre; hIndex++ ) {
@@ -33420,8 +33004,7 @@ void HP_map_zone_change2(int m, struct map_zone_data *zone) {
}
int HP_map_getcell(int16 m, int16 x, int16 y, cell_chk cellchk) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_getcell_pre ) {
int (*preHookFunc) (int16 *m, int16 *x, int16 *y, cell_chk *cellchk);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_getcell_pre; hIndex++ ) {
@@ -33522,8 +33105,7 @@ void HP_map_setusers(int p1) {
}
int HP_map_getusers(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_getusers_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_getusers_pre; hIndex++ ) {
@@ -33549,8 +33131,7 @@ int HP_map_getusers(void) {
}
int HP_map_usercount(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_usercount_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_usercount_pre; hIndex++ ) {
@@ -33576,8 +33157,7 @@ int HP_map_usercount(void) {
}
int HP_map_freeblock(struct block_list *bl) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_freeblock_pre ) {
int (*preHookFunc) (struct block_list *bl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_freeblock_pre; hIndex++ ) {
@@ -33603,8 +33183,7 @@ int HP_map_freeblock(struct block_list *bl) {
}
int HP_map_freeblock_lock(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_freeblock_lock_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_freeblock_lock_pre; hIndex++ ) {
@@ -33630,8 +33209,7 @@ int HP_map_freeblock_lock(void) {
}
int HP_map_freeblock_unlock(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_freeblock_unlock_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_freeblock_unlock_pre; hIndex++ ) {
@@ -33657,8 +33235,7 @@ int HP_map_freeblock_unlock(void) {
}
int HP_map_addblock(struct block_list *bl) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_addblock_pre ) {
int (*preHookFunc) (struct block_list *bl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_addblock_pre; hIndex++ ) {
@@ -33684,8 +33261,7 @@ int HP_map_addblock(struct block_list *bl) {
}
int HP_map_delblock(struct block_list *bl) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_delblock_pre ) {
int (*preHookFunc) (struct block_list *bl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_delblock_pre; hIndex++ ) {
@@ -33711,8 +33287,7 @@ int HP_map_delblock(struct block_list *bl) {
}
int HP_map_moveblock(struct block_list *bl, int x1, int y1, unsigned int tick) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_moveblock_pre ) {
int (*preHookFunc) (struct block_list *bl, int *x1, int *y1, unsigned int *tick);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_moveblock_pre; hIndex++ ) {
@@ -33738,8 +33313,7 @@ int HP_map_moveblock(struct block_list *bl, int x1, int y1, unsigned int tick) {
}
int HP_map_count_oncell(int16 m, int16 x, int16 y, int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_count_oncell_pre ) {
int (*preHookFunc) (int16 *m, int16 *x, int16 *y, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_count_oncell_pre; hIndex++ ) {
@@ -33791,8 +33365,7 @@ struct skill_unit* HP_map_find_skill_unit_oncell(struct block_list *target, int1
}
int HP_map_get_new_object_id(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_get_new_object_id_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_get_new_object_id_pre; hIndex++ ) {
@@ -33818,8 +33391,7 @@ int HP_map_get_new_object_id(void) {
}
int HP_map_search_freecell(struct block_list *src, int16 m, int16 *x, int16 *y, int16 rx, int16 ry, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_search_freecell_pre ) {
int (*preHookFunc) (struct block_list *src, int16 *m, int16 *x, int16 *y, int16 *rx, int16 *ry, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_search_freecell_pre; hIndex++ ) {
@@ -33845,8 +33417,7 @@ int HP_map_search_freecell(struct block_list *src, int16 m, int16 *x, int16 *y,
}
int HP_map_quit(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_quit_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_quit_pre; hIndex++ ) {
@@ -33872,8 +33443,7 @@ int HP_map_quit(struct map_session_data *sd) {
}
bool HP_map_addnpc(int16 m, struct npc_data *nd) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_map_addnpc_pre ) {
bool (*preHookFunc) (int16 *m, struct npc_data *nd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_addnpc_pre; hIndex++ ) {
@@ -33899,8 +33469,7 @@ bool HP_map_addnpc(int16 m, struct npc_data *nd) {
}
int HP_map_clearflooritem_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_clearflooritem_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_clearflooritem_timer_pre; hIndex++ ) {
@@ -33926,8 +33495,7 @@ int HP_map_clearflooritem_timer(int tid, unsigned int tick, int id, intptr_t dat
}
int HP_map_removemobs_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_removemobs_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_removemobs_timer_pre; hIndex++ ) {
@@ -33978,8 +33546,7 @@ void HP_map_clearflooritem(struct block_list *bl) {
}
int HP_map_addflooritem(struct item *item_data, int amount, int16 m, int16 x, int16 y, int first_charid, int second_charid, int third_charid, int flags) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_addflooritem_pre ) {
int (*preHookFunc) (struct item *item_data, int *amount, int16 *m, int16 *x, int16 *y, int *first_charid, int *second_charid, int *third_charid, int *flags);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_addflooritem_pre; hIndex++ ) {
@@ -34287,8 +33854,7 @@ void HP_map_vforeachiddb(int ( *func ) (struct block_list *bl, va_list args), va
}
int HP_map_vforeachinrange(int ( *func ) (struct block_list *, va_list), struct block_list *center, int16 range, int type, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_vforeachinrange_pre ) {
int (*preHookFunc) (int ( *func ) (struct block_list *, va_list), struct block_list *center, int16 *range, int *type, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforeachinrange_pre; hIndex++ ) {
@@ -34320,8 +33886,7 @@ int HP_map_vforeachinrange(int ( *func ) (struct block_list *, va_list), struct
}
int HP_map_vforeachinshootrange(int ( *func ) (struct block_list *, va_list), struct block_list *center, int16 range, int type, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_vforeachinshootrange_pre ) {
int (*preHookFunc) (int ( *func ) (struct block_list *, va_list), struct block_list *center, int16 *range, int *type, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforeachinshootrange_pre; hIndex++ ) {
@@ -34353,8 +33918,7 @@ int HP_map_vforeachinshootrange(int ( *func ) (struct block_list *, va_list), st
}
int HP_map_vforeachinarea(int ( *func ) (struct block_list *, va_list), int16 m, int16 x0, int16 y0, int16 x1, int16 y1, int type, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_vforeachinarea_pre ) {
int (*preHookFunc) (int ( *func ) (struct block_list *, va_list), int16 *m, int16 *x0, int16 *y0, int16 *x1, int16 *y1, int *type, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforeachinarea_pre; hIndex++ ) {
@@ -34386,8 +33950,7 @@ int HP_map_vforeachinarea(int ( *func ) (struct block_list *, va_list), int16 m,
}
int HP_map_vforcountinrange(int ( *func ) (struct block_list *, va_list), struct block_list *center, int16 range, int count, int type, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_vforcountinrange_pre ) {
int (*preHookFunc) (int ( *func ) (struct block_list *, va_list), struct block_list *center, int16 *range, int *count, int *type, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforcountinrange_pre; hIndex++ ) {
@@ -34419,8 +33982,7 @@ int HP_map_vforcountinrange(int ( *func ) (struct block_list *, va_list), struct
}
int HP_map_vforcountinarea(int ( *func ) (struct block_list *, va_list), int16 m, int16 x0, int16 y0, int16 x1, int16 y1, int count, int type, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_vforcountinarea_pre ) {
int (*preHookFunc) (int ( *func ) (struct block_list *, va_list), int16 *m, int16 *x0, int16 *y0, int16 *x1, int16 *y1, int *count, int *type, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforcountinarea_pre; hIndex++ ) {
@@ -34452,8 +34014,7 @@ int HP_map_vforcountinarea(int ( *func ) (struct block_list *, va_list), int16 m
}
int HP_map_vforeachinmovearea(int ( *func ) (struct block_list *, va_list), struct block_list *center, int16 range, int16 dx, int16 dy, int type, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_vforeachinmovearea_pre ) {
int (*preHookFunc) (int ( *func ) (struct block_list *, va_list), struct block_list *center, int16 *range, int16 *dx, int16 *dy, int *type, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforeachinmovearea_pre; hIndex++ ) {
@@ -34485,8 +34046,7 @@ int HP_map_vforeachinmovearea(int ( *func ) (struct block_list *, va_list), stru
}
int HP_map_vforeachincell(int ( *func ) (struct block_list *, va_list), int16 m, int16 x, int16 y, int type, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_vforeachincell_pre ) {
int (*preHookFunc) (int ( *func ) (struct block_list *, va_list), int16 *m, int16 *x, int16 *y, int *type, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforeachincell_pre; hIndex++ ) {
@@ -34518,8 +34078,7 @@ int HP_map_vforeachincell(int ( *func ) (struct block_list *, va_list), int16 m,
}
int HP_map_vforeachinpath(int ( *func ) (struct block_list *, va_list), int16 m, int16 x0, int16 y0, int16 x1, int16 y1, int16 range, int length, int type, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_vforeachinpath_pre ) {
int (*preHookFunc) (int ( *func ) (struct block_list *, va_list), int16 *m, int16 *x0, int16 *y0, int16 *x1, int16 *y1, int16 *range, int *length, int *type, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforeachinpath_pre; hIndex++ ) {
@@ -34551,8 +34110,7 @@ int HP_map_vforeachinpath(int ( *func ) (struct block_list *, va_list), int16 m,
}
int HP_map_vforeachinmap(int ( *func ) (struct block_list *, va_list), int16 m, int type, va_list args) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_vforeachinmap_pre ) {
int (*preHookFunc) (int ( *func ) (struct block_list *, va_list), int16 *m, int *type, va_list args);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforeachinmap_pre; hIndex++ ) {
@@ -34584,8 +34142,7 @@ int HP_map_vforeachinmap(int ( *func ) (struct block_list *, va_list), int16 m,
}
int HP_map_vforeachininstance(int ( *func ) (struct block_list *, va_list), int16 instance_id, int type, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_vforeachininstance_pre ) {
int (*preHookFunc) (int ( *func ) (struct block_list *, va_list), int16 *instance_id, int *type, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_vforeachininstance_pre; hIndex++ ) {
@@ -34799,8 +34356,7 @@ struct block_list* HP_map_id2bl(int id) {
}
bool HP_map_blid_exists(int id) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_map_blid_exists_pre ) {
bool (*preHookFunc) (int *id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_blid_exists_pre; hIndex++ ) {
@@ -34826,8 +34382,7 @@ bool HP_map_blid_exists(int id) {
}
int16 HP_map_mapindex2mapid(unsigned short mapindex) {
int hIndex = 0;
- int16 retVal___;
- memset(&retVal___, '\0', sizeof(int16));
+ int16 retVal___ = 0;
if( HPMHooks.count.HP_map_mapindex2mapid_pre ) {
int16 (*preHookFunc) (unsigned short *mapindex);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_mapindex2mapid_pre; hIndex++ ) {
@@ -34853,8 +34408,7 @@ int16 HP_map_mapindex2mapid(unsigned short mapindex) {
}
int16 HP_map_mapname2mapid(const char *name) {
int hIndex = 0;
- int16 retVal___;
- memset(&retVal___, '\0', sizeof(int16));
+ int16 retVal___ = 0;
if( HPMHooks.count.HP_map_mapname2mapid_pre ) {
int16 (*preHookFunc) (const char *name);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_mapname2mapid_pre; hIndex++ ) {
@@ -34880,8 +34434,7 @@ int16 HP_map_mapname2mapid(const char *name) {
}
int HP_map_mapname2ipport(unsigned short name, uint32 *ip, uint16 *port) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_mapname2ipport_pre ) {
int (*preHookFunc) (unsigned short *name, uint32 *ip, uint16 *port);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_mapname2ipport_pre; hIndex++ ) {
@@ -34907,8 +34460,7 @@ int HP_map_mapname2ipport(unsigned short name, uint32 *ip, uint16 *port) {
}
int HP_map_setipport(unsigned short mapindex, uint32 ip, uint16 port) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_setipport_pre ) {
int (*preHookFunc) (unsigned short *mapindex, uint32 *ip, uint16 *port);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_setipport_pre; hIndex++ ) {
@@ -34934,8 +34486,7 @@ int HP_map_setipport(unsigned short mapindex, uint32 ip, uint16 port) {
}
int HP_map_eraseipport(unsigned short mapindex, uint32 ip, uint16 port) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_eraseipport_pre ) {
int (*preHookFunc) (unsigned short *mapindex, uint32 *ip, uint16 *port);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_eraseipport_pre; hIndex++ ) {
@@ -34961,8 +34512,7 @@ int HP_map_eraseipport(unsigned short mapindex, uint32 ip, uint16 port) {
}
int HP_map_eraseallipport(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_eraseallipport_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_eraseallipport_pre; hIndex++ ) {
@@ -35141,8 +34691,7 @@ void HP_map_reloadnpc(bool clear) {
}
int HP_map_check_dir(int s_dir, int t_dir) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_check_dir_pre ) {
int (*preHookFunc) (int *s_dir, int *t_dir);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_check_dir_pre; hIndex++ ) {
@@ -35168,8 +34717,7 @@ int HP_map_check_dir(int s_dir, int t_dir) {
}
uint8 HP_map_calc_dir(struct block_list *src, int16 x, int16 y) {
int hIndex = 0;
- uint8 retVal___;
- memset(&retVal___, '\0', sizeof(uint8));
+ uint8 retVal___ = 0;
if( HPMHooks.count.HP_map_calc_dir_pre ) {
uint8 (*preHookFunc) (struct block_list *src, int16 *x, int16 *y);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_calc_dir_pre; hIndex++ ) {
@@ -35195,8 +34743,7 @@ uint8 HP_map_calc_dir(struct block_list *src, int16 x, int16 y) {
}
int HP_map_random_dir(struct block_list *bl, short *x, short *y) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_random_dir_pre ) {
int (*preHookFunc) (struct block_list *bl, short *x, short *y);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_random_dir_pre; hIndex++ ) {
@@ -35222,8 +34769,7 @@ int HP_map_random_dir(struct block_list *bl, short *x, short *y) {
}
int HP_map_cleanup_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_cleanup_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_cleanup_sub_pre; hIndex++ ) {
@@ -35255,8 +34801,7 @@ int HP_map_cleanup_sub(struct block_list *bl, va_list ap) {
}
int HP_map_delmap(char *mapname) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_delmap_pre ) {
int (*preHookFunc) (char *mapname);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_delmap_pre; hIndex++ ) {
@@ -35307,8 +34852,7 @@ void HP_map_flags_init(void) {
}
bool HP_map_iwall_set(int16 m, int16 x, int16 y, int size, int8 dir, bool shootable, const char *wall_name) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_map_iwall_set_pre ) {
bool (*preHookFunc) (int16 *m, int16 *x, int16 *y, int *size, int8 *dir, bool *shootable, const char *wall_name);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_iwall_set_pre; hIndex++ ) {
@@ -35384,8 +34928,7 @@ void HP_map_iwall_remove(const char *wall_name) {
}
int HP_map_addmobtolist(unsigned short m, struct spawn_data *spawn) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_addmobtolist_pre ) {
int (*preHookFunc) (unsigned short *m, struct spawn_data *spawn);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_addmobtolist_pre; hIndex++ ) {
@@ -35561,8 +35104,7 @@ void HP_map_do_shutdown(void) {
}
int HP_map_freeblock_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_freeblock_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_freeblock_timer_pre; hIndex++ ) {
@@ -35588,8 +35130,7 @@ int HP_map_freeblock_timer(int tid, unsigned int tick, int id, intptr_t data) {
}
int HP_map_searchrandfreecell(int16 m, int16 *x, int16 *y, int stack) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_searchrandfreecell_pre ) {
int (*preHookFunc) (int16 *m, int16 *x, int16 *y, int *stack);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_searchrandfreecell_pre; hIndex++ ) {
@@ -35615,8 +35156,7 @@ int HP_map_searchrandfreecell(int16 m, int16 *x, int16 *y, int stack) {
}
int HP_map_count_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_count_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_count_sub_pre; hIndex++ ) {
@@ -35681,8 +35221,7 @@ DBData HP_map_create_charid2nick(DBKey key, va_list args) {
}
int HP_map_removemobs_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_removemobs_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_removemobs_sub_pre; hIndex++ ) {
@@ -35741,8 +35280,7 @@ struct mapcell HP_map_gat2cell(int gat) {
}
int HP_map_cell2gat(struct mapcell cell) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_cell2gat_pre ) {
int (*preHookFunc) (struct mapcell *cell);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_cell2gat_pre; hIndex++ ) {
@@ -35768,8 +35306,7 @@ int HP_map_cell2gat(struct mapcell cell) {
}
int HP_map_getcellp(struct map_data *m, int16 x, int16 y, cell_chk cellchk) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_getcellp_pre ) {
int (*preHookFunc) (struct map_data *m, int16 *x, int16 *y, cell_chk *cellchk);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_getcellp_pre; hIndex++ ) {
@@ -35820,8 +35357,7 @@ void HP_map_setcell(int16 m, int16 x, int16 y, cell_t cell, bool flag) {
}
int HP_map_sub_getcellp(struct map_data *m, int16 x, int16 y, cell_chk cellchk) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_sub_getcellp_pre ) {
int (*preHookFunc) (struct map_data *m, int16 *x, int16 *y, cell_chk *cellchk);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_sub_getcellp_pre; hIndex++ ) {
@@ -35930,8 +35466,7 @@ DBData HP_map_create_map_data_other_server(DBKey key, va_list args) {
}
int HP_map_eraseallipport_sub(DBKey key, DBData *data, va_list va) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_eraseallipport_sub_pre ) {
int (*preHookFunc) (DBKey *key, DBData *data, va_list va);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_eraseallipport_sub_pre; hIndex++ ) {
@@ -35989,8 +35524,7 @@ char* HP_map_init_mapcache(FILE *fp) {
}
int HP_map_readfromcache(struct map_data *m, char *buffer) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_readfromcache_pre ) {
int (*preHookFunc) (struct map_data *m, char *buffer);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_readfromcache_pre; hIndex++ ) {
@@ -36016,8 +35550,7 @@ int HP_map_readfromcache(struct map_data *m, char *buffer) {
}
int HP_map_addmap(char *mapname) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_addmap_pre ) {
int (*preHookFunc) (char *mapname);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_addmap_pre; hIndex++ ) {
@@ -36118,8 +35651,7 @@ void HP_map_list_final(void) {
}
int HP_map_waterheight(char *mapname) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_waterheight_pre ) {
int (*preHookFunc) (char *mapname);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_waterheight_pre; hIndex++ ) {
@@ -36145,8 +35677,7 @@ int HP_map_waterheight(char *mapname) {
}
int HP_map_readgat(struct map_data *m) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_readgat_pre ) {
int (*preHookFunc) (struct map_data *m);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_readgat_pre; hIndex++ ) {
@@ -36172,8 +35703,7 @@ int HP_map_readgat(struct map_data *m) {
}
int HP_map_readallmaps(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_readallmaps_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_readallmaps_pre; hIndex++ ) {
@@ -36199,8 +35729,7 @@ int HP_map_readallmaps(void) {
}
int HP_map_config_read(char *cfgName) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_config_read_pre ) {
int (*preHookFunc) (char *cfgName);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_config_read_pre; hIndex++ ) {
@@ -36226,8 +35755,7 @@ int HP_map_config_read(char *cfgName) {
}
int HP_map_config_read_sub(char *cfgName) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_config_read_sub_pre ) {
int (*preHookFunc) (char *cfgName);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_config_read_sub_pre; hIndex++ ) {
@@ -36278,8 +35806,7 @@ void HP_map_reloadnpc_sub(char *cfgName) {
}
int HP_map_inter_config_read(char *cfgName) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_inter_config_read_pre ) {
int (*preHookFunc) (char *cfgName);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_inter_config_read_pre; hIndex++ ) {
@@ -36305,8 +35832,7 @@ int HP_map_inter_config_read(char *cfgName) {
}
int HP_map_sql_init(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_sql_init_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_sql_init_pre; hIndex++ ) {
@@ -36332,8 +35858,7 @@ int HP_map_sql_init(void) {
}
int HP_map_sql_close(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_sql_close_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_sql_close_pre; hIndex++ ) {
@@ -36359,8 +35884,7 @@ int HP_map_sql_close(void) {
}
bool HP_map_zone_mf_cache(int m, char *flag, char *params) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_map_zone_mf_cache_pre ) {
bool (*preHookFunc) (int *m, char *flag, char *params);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_zone_mf_cache_pre; hIndex++ ) {
@@ -36386,8 +35910,7 @@ bool HP_map_zone_mf_cache(int m, char *flag, char *params) {
}
unsigned short HP_map_zone_str2itemid(const char *name) {
int hIndex = 0;
- unsigned short retVal___;
- memset(&retVal___, '\0', sizeof(unsigned short));
+ unsigned short retVal___ = 0;
if( HPMHooks.count.HP_map_zone_str2itemid_pre ) {
unsigned short (*preHookFunc) (const char *name);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_zone_str2itemid_pre; hIndex++ ) {
@@ -36413,8 +35936,7 @@ unsigned short HP_map_zone_str2itemid(const char *name) {
}
unsigned short HP_map_zone_str2skillid(const char *name) {
int hIndex = 0;
- unsigned short retVal___;
- memset(&retVal___, '\0', sizeof(unsigned short));
+ unsigned short retVal___ = 0;
if( HPMHooks.count.HP_map_zone_str2skillid_pre ) {
unsigned short (*preHookFunc) (const char *name);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_zone_str2skillid_pre; hIndex++ ) {
@@ -36440,8 +35962,7 @@ unsigned short HP_map_zone_str2skillid(const char *name) {
}
enum bl_type HP_map_zone_bl_type(const char *entry, enum map_zone_skill_subtype *subtype) {
int hIndex = 0;
- enum bl_type retVal___;
- memset(&retVal___, '\0', sizeof(enum bl_type));
+ enum bl_type retVal___ = BL_NUL;
if( HPMHooks.count.HP_map_zone_bl_type_pre ) {
enum bl_type (*preHookFunc) (const char *entry, enum map_zone_skill_subtype *subtype);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_zone_bl_type_pre; hIndex++ ) {
@@ -36492,8 +36013,7 @@ void HP_map_read_zone_db(void) {
}
int HP_map_db_final(DBKey key, DBData *data, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_db_final_pre ) {
int (*preHookFunc) (DBKey *key, DBData *data, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_db_final_pre; hIndex++ ) {
@@ -36525,8 +36045,7 @@ int HP_map_db_final(DBKey key, DBData *data, va_list ap) {
}
int HP_map_nick_db_final(DBKey key, DBData *data, va_list args) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_nick_db_final_pre ) {
int (*preHookFunc) (DBKey *key, DBData *data, va_list args);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_nick_db_final_pre; hIndex++ ) {
@@ -36558,8 +36077,7 @@ int HP_map_nick_db_final(DBKey key, DBData *data, va_list args) {
}
int HP_map_cleanup_db_sub(DBKey key, DBData *data, va_list va) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_cleanup_db_sub_pre ) {
int (*preHookFunc) (DBKey *key, DBData *data, va_list va);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_cleanup_db_sub_pre; hIndex++ ) {
@@ -36591,8 +36109,7 @@ int HP_map_cleanup_db_sub(DBKey key, DBData *data, va_list va) {
}
int HP_map_abort_sub(struct map_session_data *sd, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_map_abort_sub_pre ) {
int (*preHookFunc) (struct map_session_data *sd, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_abort_sub_pre; hIndex++ ) {
@@ -36674,8 +36191,7 @@ void HP_map_versionscreen(bool do_exit) {
}
bool HP_map_arg_next_value(const char *option, int i, int argc) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_map_arg_next_value_pre ) {
bool (*preHookFunc) (const char *option, int *i, int *argc);
for(hIndex = 0; hIndex < HPMHooks.count.HP_map_arg_next_value_pre; hIndex++ ) {
@@ -36907,8 +36423,7 @@ struct block_list* HP_mapit_prev(struct s_mapiterator *iter) {
}
bool HP_mapit_exists(struct s_mapiterator *iter) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_mapit_exists_pre ) {
bool (*preHookFunc) (struct s_mapiterator *iter);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mapit_exists_pre; hIndex++ ) {
@@ -36985,8 +36500,7 @@ void HP_mapreg_final(void) {
}
int HP_mapreg_readreg(int uid) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mapreg_readreg_pre ) {
int (*preHookFunc) (int *uid);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mapreg_readreg_pre; hIndex++ ) {
@@ -37038,8 +36552,7 @@ char* HP_mapreg_readregstr(int uid) {
}
bool HP_mapreg_setreg(int uid, int val) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_mapreg_setreg_pre ) {
bool (*preHookFunc) (int *uid, int *val);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mapreg_setreg_pre; hIndex++ ) {
@@ -37065,8 +36578,7 @@ bool HP_mapreg_setreg(int uid, int val) {
}
bool HP_mapreg_setregstr(int uid, const char *str) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_mapreg_setregstr_pre ) {
bool (*preHookFunc) (int *uid, const char *str);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mapreg_setregstr_pre; hIndex++ ) {
@@ -37142,8 +36654,7 @@ void HP_mapreg_save(void) {
}
int HP_mapreg_save_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mapreg_save_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mapreg_save_timer_pre; hIndex++ ) {
@@ -37194,8 +36705,7 @@ void HP_mapreg_reload(void) {
}
bool HP_mapreg_config_read(const char *w1, const char *w2) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_mapreg_config_read_pre ) {
bool (*preHookFunc) (const char *w1, const char *w2);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mapreg_config_read_pre; hIndex++ ) {
@@ -37247,8 +36757,7 @@ void HP_mercenary_init(void) {
}
bool HP_mercenary_class(int class_) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_mercenary_class_pre ) {
bool (*preHookFunc) (int *class_);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_class_pre; hIndex++ ) {
@@ -37300,8 +36809,7 @@ struct view_data* HP_mercenary_get_viewdata(int class_) {
}
int HP_mercenary_create(struct map_session_data *sd, int class_, unsigned int lifetime) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mercenary_create_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *class_, unsigned int *lifetime);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_create_pre; hIndex++ ) {
@@ -37327,8 +36835,7 @@ int HP_mercenary_create(struct map_session_data *sd, int class_, unsigned int li
}
int HP_mercenary_data_received(struct s_mercenary *merc, bool flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mercenary_data_received_pre ) {
int (*preHookFunc) (struct s_mercenary *merc, bool *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_data_received_pre; hIndex++ ) {
@@ -37354,8 +36861,7 @@ int HP_mercenary_data_received(struct s_mercenary *merc, bool flag) {
}
int HP_mercenary_save(struct mercenary_data *md) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mercenary_save_pre ) {
int (*preHookFunc) (struct mercenary_data *md);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_save_pre; hIndex++ ) {
@@ -37406,8 +36912,7 @@ void HP_mercenary_heal(struct mercenary_data *md, int hp, int sp) {
}
int HP_mercenary_dead(struct mercenary_data *md) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mercenary_dead_pre ) {
int (*preHookFunc) (struct mercenary_data *md);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_dead_pre; hIndex++ ) {
@@ -37433,8 +36938,7 @@ int HP_mercenary_dead(struct mercenary_data *md) {
}
int HP_mercenary_delete(struct mercenary_data *md, int reply) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mercenary_delete_pre ) {
int (*preHookFunc) (struct mercenary_data *md, int *reply);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_delete_pre; hIndex++ ) {
@@ -37485,8 +36989,7 @@ void HP_mercenary_contract_stop(struct mercenary_data *md) {
}
int HP_mercenary_get_lifetime(struct mercenary_data *md) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mercenary_get_lifetime_pre ) {
int (*preHookFunc) (struct mercenary_data *md);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_get_lifetime_pre; hIndex++ ) {
@@ -37512,8 +37015,7 @@ int HP_mercenary_get_lifetime(struct mercenary_data *md) {
}
int HP_mercenary_get_guild(struct mercenary_data *md) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mercenary_get_guild_pre ) {
int (*preHookFunc) (struct mercenary_data *md);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_get_guild_pre; hIndex++ ) {
@@ -37539,8 +37041,7 @@ int HP_mercenary_get_guild(struct mercenary_data *md) {
}
int HP_mercenary_get_faith(struct mercenary_data *md) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mercenary_get_faith_pre ) {
int (*preHookFunc) (struct mercenary_data *md);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_get_faith_pre; hIndex++ ) {
@@ -37566,8 +37067,7 @@ int HP_mercenary_get_faith(struct mercenary_data *md) {
}
int HP_mercenary_set_faith(struct mercenary_data *md, int value) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mercenary_set_faith_pre ) {
int (*preHookFunc) (struct mercenary_data *md, int *value);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_set_faith_pre; hIndex++ ) {
@@ -37593,8 +37093,7 @@ int HP_mercenary_set_faith(struct mercenary_data *md, int value) {
}
int HP_mercenary_get_calls(struct mercenary_data *md) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mercenary_get_calls_pre ) {
int (*preHookFunc) (struct mercenary_data *md);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_get_calls_pre; hIndex++ ) {
@@ -37620,8 +37119,7 @@ int HP_mercenary_get_calls(struct mercenary_data *md) {
}
int HP_mercenary_set_calls(struct mercenary_data *md, int value) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mercenary_set_calls_pre ) {
int (*preHookFunc) (struct mercenary_data *md, int *value);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_set_calls_pre; hIndex++ ) {
@@ -37647,8 +37145,7 @@ int HP_mercenary_set_calls(struct mercenary_data *md, int value) {
}
int HP_mercenary_kills(struct mercenary_data *md) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mercenary_kills_pre ) {
int (*preHookFunc) (struct mercenary_data *md);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_kills_pre; hIndex++ ) {
@@ -37674,8 +37171,7 @@ int HP_mercenary_kills(struct mercenary_data *md) {
}
int HP_mercenary_checkskill(struct mercenary_data *md, uint16 skill_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mercenary_checkskill_pre ) {
int (*preHookFunc) (struct mercenary_data *md, uint16 *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_checkskill_pre; hIndex++ ) {
@@ -37701,8 +37197,7 @@ int HP_mercenary_checkskill(struct mercenary_data *md, uint16 skill_id) {
}
int HP_mercenary_read_db(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mercenary_read_db_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_read_db_pre; hIndex++ ) {
@@ -37728,8 +37223,7 @@ int HP_mercenary_read_db(void) {
}
int HP_mercenary_read_skilldb(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mercenary_read_skilldb_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_read_skilldb_pre; hIndex++ ) {
@@ -37755,8 +37249,7 @@ int HP_mercenary_read_skilldb(void) {
}
int HP_mercenary_killbonus(struct mercenary_data *md) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mercenary_killbonus_pre ) {
int (*preHookFunc) (struct mercenary_data *md);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_killbonus_pre; hIndex++ ) {
@@ -37782,8 +37275,7 @@ int HP_mercenary_killbonus(struct mercenary_data *md) {
}
int HP_mercenary_search_index(int class_) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mercenary_search_index_pre ) {
int (*preHookFunc) (int *class_);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_search_index_pre; hIndex++ ) {
@@ -37809,8 +37301,7 @@ int HP_mercenary_search_index(int class_) {
}
int HP_mercenary_contract_end_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mercenary_contract_end_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_contract_end_timer_pre; hIndex++ ) {
@@ -37836,8 +37327,7 @@ int HP_mercenary_contract_end_timer(int tid, unsigned int tick, int id, intptr_t
}
bool HP_mercenary_read_db_sub(char *str[], int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_mercenary_read_db_sub_pre ) {
bool (*preHookFunc) (char *str[], int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_read_db_sub_pre; hIndex++ ) {
@@ -37863,8 +37353,7 @@ bool HP_mercenary_read_db_sub(char *str[], int columns, int current) {
}
bool HP_mercenary_read_skill_db_sub(char *str[], int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_mercenary_read_skill_db_sub_pre ) {
bool (*preHookFunc) (char *str[], int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mercenary_read_skill_db_sub_pre; hIndex++ ) {
@@ -37891,8 +37380,7 @@ bool HP_mercenary_read_skill_db_sub(char *str[], int columns, int current) {
/* mob */
int HP_mob_init(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_init_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_init_pre; hIndex++ ) {
@@ -37918,8 +37406,7 @@ int HP_mob_init(void) {
}
int HP_mob_final(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_final_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_final_pre; hIndex++ ) {
@@ -38022,8 +37509,7 @@ struct mob_chat* HP_mob_chat(short id) {
}
int HP_mob_makedummymobdb(int p1) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_makedummymobdb_pre ) {
int (*preHookFunc) (int *p1);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_makedummymobdb_pre; hIndex++ ) {
@@ -38049,8 +37535,7 @@ int HP_mob_makedummymobdb(int p1) {
}
int HP_mob_spawn_guardian_sub(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_spawn_guardian_sub_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_spawn_guardian_sub_pre; hIndex++ ) {
@@ -38076,8 +37561,7 @@ int HP_mob_spawn_guardian_sub(int tid, unsigned int tick, int id, intptr_t data)
}
int HP_mob_skill_id2skill_idx(int class_, uint16 skill_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_skill_id2skill_idx_pre ) {
int (*preHookFunc) (int *class_, uint16 *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_skill_id2skill_idx_pre; hIndex++ ) {
@@ -38103,8 +37587,7 @@ int HP_mob_skill_id2skill_idx(int class_, uint16 skill_id) {
}
int HP_mob_db_searchname(const char *str) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_db_searchname_pre ) {
int (*preHookFunc) (const char *str);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_db_searchname_pre; hIndex++ ) {
@@ -38130,8 +37613,7 @@ int HP_mob_db_searchname(const char *str) {
}
int HP_mob_db_searchname_array_sub(struct mob_db *mob, const char *str, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_db_searchname_array_sub_pre ) {
int (*preHookFunc) (struct mob_db *mob, const char *str, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_db_searchname_array_sub_pre; hIndex++ ) {
@@ -38207,8 +37689,7 @@ void HP_mob_mvptomb_destroy(struct mob_data *md) {
}
int HP_mob_db_searchname_array(struct mob_db **data, int size, const char *str, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_db_searchname_array_pre ) {
int (*preHookFunc) (struct mob_db **data, int *size, const char *str, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_db_searchname_array_pre; hIndex++ ) {
@@ -38234,8 +37715,7 @@ int HP_mob_db_searchname_array(struct mob_db **data, int size, const char *str,
}
int HP_mob_db_checkid(const int id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_db_checkid_pre ) {
int (*preHookFunc) (const int *id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_db_checkid_pre; hIndex++ ) {
@@ -38287,8 +37767,7 @@ struct view_data* HP_mob_get_viewdata(int class_) {
}
int HP_mob_parse_dataset(struct spawn_data *data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_parse_dataset_pre ) {
int (*preHookFunc) (struct spawn_data *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_parse_dataset_pre; hIndex++ ) {
@@ -38340,8 +37819,7 @@ struct mob_data* HP_mob_spawn_dataset(struct spawn_data *data) {
}
int HP_mob_get_random_id(int type, int flag, int lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_get_random_id_pre ) {
int (*preHookFunc) (int *type, int *flag, int *lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_get_random_id_pre; hIndex++ ) {
@@ -38367,8 +37845,7 @@ int HP_mob_get_random_id(int type, int flag, int lv) {
}
bool HP_mob_ksprotected(struct block_list *src, struct block_list *target) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_mob_ksprotected_pre ) {
bool (*preHookFunc) (struct block_list *src, struct block_list *target);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_ksprotected_pre; hIndex++ ) {
@@ -38420,8 +37897,7 @@ struct mob_data* HP_mob_once_spawn_sub(struct block_list *bl, int16 m, int16 x,
}
int HP_mob_once_spawn(struct map_session_data *sd, int16 m, int16 x, int16 y, const char *mobname, int class_, int amount, const char *event, unsigned int size, unsigned int ai) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_once_spawn_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int16 *m, int16 *x, int16 *y, const char *mobname, int *class_, int *amount, const char *event, unsigned int *size, unsigned int *ai);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_once_spawn_pre; hIndex++ ) {
@@ -38447,8 +37923,7 @@ int HP_mob_once_spawn(struct map_session_data *sd, int16 m, int16 x, int16 y, co
}
int HP_mob_once_spawn_area(struct map_session_data *sd, int16 m, int16 x0, int16 y0, int16 x1, int16 y1, const char *mobname, int class_, int amount, const char *event, unsigned int size, unsigned int ai) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_once_spawn_area_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int16 *m, int16 *x0, int16 *y0, int16 *x1, int16 *y1, const char *mobname, int *class_, int *amount, const char *event, unsigned int *size, unsigned int *ai);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_once_spawn_area_pre; hIndex++ ) {
@@ -38474,8 +37949,7 @@ int HP_mob_once_spawn_area(struct map_session_data *sd, int16 m, int16 x0, int16
}
int HP_mob_spawn_guardian(const char *mapname, short x, short y, const char *mobname, int class_, const char *event, int guardian, bool has_index) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_spawn_guardian_pre ) {
int (*preHookFunc) (const char *mapname, short *x, short *y, const char *mobname, int *class_, const char *event, int *guardian, bool *has_index);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_spawn_guardian_pre; hIndex++ ) {
@@ -38501,8 +37975,7 @@ int HP_mob_spawn_guardian(const char *mapname, short x, short y, const char *mob
}
int HP_mob_spawn_bg(const char *mapname, short x, short y, const char *mobname, int class_, const char *event, unsigned int bg_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_spawn_bg_pre ) {
int (*preHookFunc) (const char *mapname, short *x, short *y, const char *mobname, int *class_, const char *event, unsigned int *bg_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_spawn_bg_pre; hIndex++ ) {
@@ -38528,8 +38001,7 @@ int HP_mob_spawn_bg(const char *mapname, short x, short y, const char *mobname,
}
int HP_mob_can_reach(struct mob_data *md, struct block_list *bl, int range, int state) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_can_reach_pre ) {
int (*preHookFunc) (struct mob_data *md, struct block_list *bl, int *range, int *state);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_can_reach_pre; hIndex++ ) {
@@ -38555,8 +38027,7 @@ int HP_mob_can_reach(struct mob_data *md, struct block_list *bl, int range, int
}
int HP_mob_linksearch(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_linksearch_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_linksearch_pre; hIndex++ ) {
@@ -38588,8 +38059,7 @@ int HP_mob_linksearch(struct block_list *bl, va_list ap) {
}
int HP_mob_delayspawn(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_delayspawn_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_delayspawn_pre; hIndex++ ) {
@@ -38615,8 +38085,7 @@ int HP_mob_delayspawn(int tid, unsigned int tick, int id, intptr_t data) {
}
int HP_mob_setdelayspawn(struct mob_data *md) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_setdelayspawn_pre ) {
int (*preHookFunc) (struct mob_data *md);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_setdelayspawn_pre; hIndex++ ) {
@@ -38642,8 +38111,7 @@ int HP_mob_setdelayspawn(struct mob_data *md) {
}
int HP_mob_count_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_count_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_count_sub_pre; hIndex++ ) {
@@ -38675,8 +38143,7 @@ int HP_mob_count_sub(struct block_list *bl, va_list ap) {
}
int HP_mob_spawn(struct mob_data *md) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_spawn_pre ) {
int (*preHookFunc) (struct mob_data *md);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_spawn_pre; hIndex++ ) {
@@ -38702,8 +38169,7 @@ int HP_mob_spawn(struct mob_data *md) {
}
int HP_mob_can_changetarget(struct mob_data *md, struct block_list *target, int mode) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_can_changetarget_pre ) {
int (*preHookFunc) (struct mob_data *md, struct block_list *target, int *mode);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_can_changetarget_pre; hIndex++ ) {
@@ -38729,8 +38195,7 @@ int HP_mob_can_changetarget(struct mob_data *md, struct block_list *target, int
}
int HP_mob_target(struct mob_data *md, struct block_list *bl, int dist) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_target_pre ) {
int (*preHookFunc) (struct mob_data *md, struct block_list *bl, int *dist);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_target_pre; hIndex++ ) {
@@ -38756,8 +38221,7 @@ int HP_mob_target(struct mob_data *md, struct block_list *bl, int dist) {
}
int HP_mob_ai_sub_hard_activesearch(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_ai_sub_hard_activesearch_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_ai_sub_hard_activesearch_pre; hIndex++ ) {
@@ -38789,8 +38253,7 @@ int HP_mob_ai_sub_hard_activesearch(struct block_list *bl, va_list ap) {
}
int HP_mob_ai_sub_hard_changechase(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_ai_sub_hard_changechase_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_ai_sub_hard_changechase_pre; hIndex++ ) {
@@ -38822,8 +38285,7 @@ int HP_mob_ai_sub_hard_changechase(struct block_list *bl, va_list ap) {
}
int HP_mob_ai_sub_hard_bg_ally(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_ai_sub_hard_bg_ally_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_ai_sub_hard_bg_ally_pre; hIndex++ ) {
@@ -38855,8 +38317,7 @@ int HP_mob_ai_sub_hard_bg_ally(struct block_list *bl, va_list ap) {
}
int HP_mob_ai_sub_hard_lootsearch(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_ai_sub_hard_lootsearch_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_ai_sub_hard_lootsearch_pre; hIndex++ ) {
@@ -38888,8 +38349,7 @@ int HP_mob_ai_sub_hard_lootsearch(struct block_list *bl, va_list ap) {
}
int HP_mob_warpchase_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_warpchase_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_warpchase_sub_pre; hIndex++ ) {
@@ -38921,8 +38381,7 @@ int HP_mob_warpchase_sub(struct block_list *bl, va_list ap) {
}
int HP_mob_ai_sub_hard_slavemob(struct mob_data *md, unsigned int tick) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_ai_sub_hard_slavemob_pre ) {
int (*preHookFunc) (struct mob_data *md, unsigned int *tick);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_ai_sub_hard_slavemob_pre; hIndex++ ) {
@@ -38948,8 +38407,7 @@ int HP_mob_ai_sub_hard_slavemob(struct mob_data *md, unsigned int tick) {
}
int HP_mob_unlocktarget(struct mob_data *md, unsigned int tick) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_unlocktarget_pre ) {
int (*preHookFunc) (struct mob_data *md, unsigned int *tick);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_unlocktarget_pre; hIndex++ ) {
@@ -38975,8 +38433,7 @@ int HP_mob_unlocktarget(struct mob_data *md, unsigned int tick) {
}
int HP_mob_randomwalk(struct mob_data *md, unsigned int tick) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_randomwalk_pre ) {
int (*preHookFunc) (struct mob_data *md, unsigned int *tick);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_randomwalk_pre; hIndex++ ) {
@@ -39002,8 +38459,7 @@ int HP_mob_randomwalk(struct mob_data *md, unsigned int tick) {
}
int HP_mob_warpchase(struct mob_data *md, struct block_list *target) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_warpchase_pre ) {
int (*preHookFunc) (struct mob_data *md, struct block_list *target);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_warpchase_pre; hIndex++ ) {
@@ -39029,8 +38485,7 @@ int HP_mob_warpchase(struct mob_data *md, struct block_list *target) {
}
bool HP_mob_ai_sub_hard(struct mob_data *md, unsigned int tick) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_mob_ai_sub_hard_pre ) {
bool (*preHookFunc) (struct mob_data *md, unsigned int *tick);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_ai_sub_hard_pre; hIndex++ ) {
@@ -39056,8 +38511,7 @@ bool HP_mob_ai_sub_hard(struct mob_data *md, unsigned int tick) {
}
int HP_mob_ai_sub_hard_timer(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_ai_sub_hard_timer_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_ai_sub_hard_timer_pre; hIndex++ ) {
@@ -39089,8 +38543,7 @@ int HP_mob_ai_sub_hard_timer(struct block_list *bl, va_list ap) {
}
int HP_mob_ai_sub_foreachclient(struct map_session_data *sd, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_ai_sub_foreachclient_pre ) {
int (*preHookFunc) (struct map_session_data *sd, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_ai_sub_foreachclient_pre; hIndex++ ) {
@@ -39122,8 +38575,7 @@ int HP_mob_ai_sub_foreachclient(struct map_session_data *sd, va_list ap) {
}
int HP_mob_ai_sub_lazy(struct mob_data *md, va_list args) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_ai_sub_lazy_pre ) {
int (*preHookFunc) (struct mob_data *md, va_list args);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_ai_sub_lazy_pre; hIndex++ ) {
@@ -39155,8 +38607,7 @@ int HP_mob_ai_sub_lazy(struct mob_data *md, va_list args) {
}
int HP_mob_ai_lazy(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_ai_lazy_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_ai_lazy_pre; hIndex++ ) {
@@ -39182,8 +38633,7 @@ int HP_mob_ai_lazy(int tid, unsigned int tick, int id, intptr_t data) {
}
int HP_mob_ai_hard(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_ai_hard_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_ai_hard_pre; hIndex++ ) {
@@ -39261,8 +38711,7 @@ struct item_drop* HP_mob_setlootitem(struct item *item) {
}
int HP_mob_delay_item_drop(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_delay_item_drop_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_delay_item_drop_pre; hIndex++ ) {
@@ -39313,8 +38762,7 @@ void HP_mob_item_drop(struct mob_data *md, struct item_drop_list *dlist, struct
}
int HP_mob_timer_delete(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_timer_delete_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_timer_delete_pre; hIndex++ ) {
@@ -39340,8 +38788,7 @@ int HP_mob_timer_delete(int tid, unsigned int tick, int id, intptr_t data) {
}
int HP_mob_deleteslave_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_deleteslave_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_deleteslave_sub_pre; hIndex++ ) {
@@ -39373,8 +38820,7 @@ int HP_mob_deleteslave_sub(struct block_list *bl, va_list ap) {
}
int HP_mob_deleteslave(struct mob_data *md) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_deleteslave_pre ) {
int (*preHookFunc) (struct mob_data *md);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_deleteslave_pre; hIndex++ ) {
@@ -39400,8 +38846,7 @@ int HP_mob_deleteslave(struct mob_data *md) {
}
int HP_mob_respawn(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_respawn_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_respawn_pre; hIndex++ ) {
@@ -39477,8 +38922,7 @@ void HP_mob_damage(struct mob_data *md, struct block_list *src, int damage) {
}
int HP_mob_dead(struct mob_data *md, struct block_list *src, int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_dead_pre ) {
int (*preHookFunc) (struct mob_data *md, struct block_list *src, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_dead_pre; hIndex++ ) {
@@ -39529,8 +38973,7 @@ void HP_mob_revive(struct mob_data *md, unsigned int hp) {
}
int HP_mob_guardian_guildchange(struct mob_data *md) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_guardian_guildchange_pre ) {
int (*preHookFunc) (struct mob_data *md);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_guardian_guildchange_pre; hIndex++ ) {
@@ -39556,8 +38999,7 @@ int HP_mob_guardian_guildchange(struct mob_data *md) {
}
int HP_mob_random_class(int *value, size_t count) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_random_class_pre ) {
int (*preHookFunc) (int *value, size_t *count);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_random_class_pre; hIndex++ ) {
@@ -39583,8 +39025,7 @@ int HP_mob_random_class(int *value, size_t count) {
}
int HP_mob_class_change(struct mob_data *md, int class_) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_class_change_pre ) {
int (*preHookFunc) (struct mob_data *md, int *class_);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_class_change_pre; hIndex++ ) {
@@ -39635,8 +39076,7 @@ void HP_mob_heal(struct mob_data *md, unsigned int heal) {
}
int HP_mob_warpslave_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_warpslave_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_warpslave_sub_pre; hIndex++ ) {
@@ -39668,8 +39108,7 @@ int HP_mob_warpslave_sub(struct block_list *bl, va_list ap) {
}
int HP_mob_warpslave(struct block_list *bl, int range) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_warpslave_pre ) {
int (*preHookFunc) (struct block_list *bl, int *range);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_warpslave_pre; hIndex++ ) {
@@ -39695,8 +39134,7 @@ int HP_mob_warpslave(struct block_list *bl, int range) {
}
int HP_mob_countslave_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_countslave_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_countslave_sub_pre; hIndex++ ) {
@@ -39728,8 +39166,7 @@ int HP_mob_countslave_sub(struct block_list *bl, va_list ap) {
}
int HP_mob_countslave(struct block_list *bl) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_countslave_pre ) {
int (*preHookFunc) (struct block_list *bl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_countslave_pre; hIndex++ ) {
@@ -39755,8 +39192,7 @@ int HP_mob_countslave(struct block_list *bl) {
}
int HP_mob_summonslave(struct mob_data *md2, int *value, int amount, uint16 skill_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_summonslave_pre ) {
int (*preHookFunc) (struct mob_data *md2, int *value, int *amount, uint16 *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_summonslave_pre; hIndex++ ) {
@@ -39782,8 +39218,7 @@ int HP_mob_summonslave(struct mob_data *md2, int *value, int amount, uint16 skil
}
int HP_mob_getfriendhprate_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_getfriendhprate_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_getfriendhprate_sub_pre; hIndex++ ) {
@@ -39867,8 +39302,7 @@ struct block_list* HP_mob_getmasterhpltmaxrate(struct mob_data *md, int rate) {
}
int HP_mob_getfriendstatus_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_getfriendstatus_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_getfriendstatus_sub_pre; hIndex++ ) {
@@ -39926,8 +39360,7 @@ struct mob_data* HP_mob_getfriendstatus(struct mob_data *md, int cond1, int cond
}
int HP_mob_skill_use(struct mob_data *md, unsigned int tick, int event) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_skill_use_pre ) {
int (*preHookFunc) (struct mob_data *md, unsigned int *tick, int *event);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_skill_use_pre; hIndex++ ) {
@@ -39953,8 +39386,7 @@ int HP_mob_skill_use(struct mob_data *md, unsigned int tick, int event) {
}
int HP_mob_skill_event(struct mob_data *md, struct block_list *src, unsigned int tick, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_skill_event_pre ) {
int (*preHookFunc) (struct mob_data *md, struct block_list *src, unsigned int *tick, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_skill_event_pre; hIndex++ ) {
@@ -39980,8 +39412,7 @@ int HP_mob_skill_event(struct mob_data *md, struct block_list *src, unsigned int
}
int HP_mob_is_clone(int class_) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_is_clone_pre ) {
int (*preHookFunc) (int *class_);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_is_clone_pre; hIndex++ ) {
@@ -40007,8 +39438,7 @@ int HP_mob_is_clone(int class_) {
}
int HP_mob_clone_spawn(struct map_session_data *sd, int16 m, int16 x, int16 y, const char *event, int master_id, int mode, int flag, unsigned int duration) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_clone_spawn_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int16 *m, int16 *x, int16 *y, const char *event, int *master_id, int *mode, int *flag, unsigned int *duration);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_clone_spawn_pre; hIndex++ ) {
@@ -40034,8 +39464,7 @@ int HP_mob_clone_spawn(struct map_session_data *sd, int16 m, int16 x, int16 y, c
}
int HP_mob_clone_delete(struct mob_data *md) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_clone_delete_pre ) {
int (*preHookFunc) (struct mob_data *md);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_clone_delete_pre; hIndex++ ) {
@@ -40061,8 +39490,7 @@ int HP_mob_clone_delete(struct mob_data *md) {
}
unsigned int HP_mob_drop_adjust(int baserate, int rate_adjust, unsigned short rate_min, unsigned short rate_max) {
int hIndex = 0;
- unsigned int retVal___;
- memset(&retVal___, '\0', sizeof(unsigned int));
+ unsigned int retVal___ = 0;
if( HPMHooks.count.HP_mob_drop_adjust_pre ) {
unsigned int (*preHookFunc) (int *baserate, int *rate_adjust, unsigned short *rate_min, unsigned short *rate_max);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_drop_adjust_pre; hIndex++ ) {
@@ -40113,8 +39541,7 @@ void HP_mob_item_dropratio_adjust(int nameid, int mob_id, int *rate_adjust) {
}
bool HP_mob_parse_dbrow(char **str) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_mob_parse_dbrow_pre ) {
bool (*preHookFunc) (char **str);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_parse_dbrow_pre; hIndex++ ) {
@@ -40140,8 +39567,7 @@ bool HP_mob_parse_dbrow(char **str) {
}
bool HP_mob_readdb_sub(char *fields[], int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_mob_readdb_sub_pre ) {
bool (*preHookFunc) (char *fields[], int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_readdb_sub_pre; hIndex++ ) {
@@ -40192,8 +39618,7 @@ void HP_mob_readdb(void) {
}
int HP_mob_read_sqldb(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_read_sqldb_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_read_sqldb_pre; hIndex++ ) {
@@ -40219,8 +39644,7 @@ int HP_mob_read_sqldb(void) {
}
bool HP_mob_readdb_mobavail(char *str[], int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_mob_readdb_mobavail_pre ) {
bool (*preHookFunc) (char *str[], int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_readdb_mobavail_pre; hIndex++ ) {
@@ -40246,8 +39670,7 @@ bool HP_mob_readdb_mobavail(char *str[], int columns, int current) {
}
int HP_mob_read_randommonster(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_read_randommonster_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_read_randommonster_pre; hIndex++ ) {
@@ -40273,8 +39696,7 @@ int HP_mob_read_randommonster(void) {
}
bool HP_mob_parse_row_chatdb(char **str, const char *source, int line, int *last_msg_id) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_mob_parse_row_chatdb_pre ) {
bool (*preHookFunc) (char **str, const char *source, int *line, int *last_msg_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_parse_row_chatdb_pre; hIndex++ ) {
@@ -40325,8 +39747,7 @@ void HP_mob_readchatdb(void) {
}
bool HP_mob_parse_row_mobskilldb(char **str, int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_mob_parse_row_mobskilldb_pre ) {
bool (*preHookFunc) (char **str, int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_parse_row_mobskilldb_pre; hIndex++ ) {
@@ -40377,8 +39798,7 @@ void HP_mob_readskilldb(void) {
}
int HP_mob_read_sqlskilldb(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_mob_read_sqlskilldb_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_read_sqlskilldb_pre; hIndex++ ) {
@@ -40404,8 +39824,7 @@ int HP_mob_read_sqlskilldb(void) {
}
bool HP_mob_readdb_race2(char *fields[], int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_mob_readdb_race2_pre ) {
bool (*preHookFunc) (char *fields[], int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_readdb_race2_pre; hIndex++ ) {
@@ -40431,8 +39850,7 @@ bool HP_mob_readdb_race2(char *fields[], int columns, int current) {
}
bool HP_mob_readdb_itemratio(char *str[], int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_mob_readdb_itemratio_pre ) {
bool (*preHookFunc) (char *str[], int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_mob_readdb_itemratio_pre; hIndex++ ) {
@@ -40509,8 +39927,7 @@ void HP_mob_clear_spawninfo(void) {
/* npc */
int HP_npc_init(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_init_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_init_pre; hIndex++ ) {
@@ -40536,8 +39953,7 @@ int HP_npc_init(void) {
}
int HP_npc_final(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_final_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_final_pre; hIndex++ ) {
@@ -40563,8 +39979,7 @@ int HP_npc_final(void) {
}
int HP_npc_get_new_npc_id(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_get_new_npc_id_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_get_new_npc_id_pre; hIndex++ ) {
@@ -40616,8 +40031,7 @@ struct view_data* HP_npc_get_viewdata(int class_) {
}
int HP_npc_isnear_sub(struct block_list *bl, va_list args) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_isnear_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list args);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_isnear_sub_pre; hIndex++ ) {
@@ -40649,8 +40063,7 @@ int HP_npc_isnear_sub(struct block_list *bl, va_list args) {
}
bool HP_npc_isnear(struct block_list *bl) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_npc_isnear_pre ) {
bool (*preHookFunc) (struct block_list *bl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_isnear_pre; hIndex++ ) {
@@ -40676,8 +40089,7 @@ bool HP_npc_isnear(struct block_list *bl) {
}
int HP_npc_ontouch_event(struct map_session_data *sd, struct npc_data *nd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_ontouch_event_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct npc_data *nd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_ontouch_event_pre; hIndex++ ) {
@@ -40703,8 +40115,7 @@ int HP_npc_ontouch_event(struct map_session_data *sd, struct npc_data *nd) {
}
int HP_npc_ontouch2_event(struct map_session_data *sd, struct npc_data *nd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_ontouch2_event_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct npc_data *nd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_ontouch2_event_pre; hIndex++ ) {
@@ -40730,8 +40141,7 @@ int HP_npc_ontouch2_event(struct map_session_data *sd, struct npc_data *nd) {
}
int HP_npc_enable_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_enable_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_enable_sub_pre; hIndex++ ) {
@@ -40763,8 +40173,7 @@ int HP_npc_enable_sub(struct block_list *bl, va_list ap) {
}
int HP_npc_enable(const char *name, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_enable_pre ) {
int (*preHookFunc) (const char *name, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_enable_pre; hIndex++ ) {
@@ -40816,8 +40225,7 @@ struct npc_data* HP_npc_name2id(const char *name) {
}
int HP_npc_event_dequeue(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_event_dequeue_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_event_dequeue_pre; hIndex++ ) {
@@ -40876,8 +40284,7 @@ DBData HP_npc_event_export_create(DBKey key, va_list args) {
}
int HP_npc_event_export(struct npc_data *nd, int i) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_event_export_pre ) {
int (*preHookFunc) (struct npc_data *nd, int *i);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_event_export_pre; hIndex++ ) {
@@ -40903,8 +40310,7 @@ int HP_npc_event_export(struct npc_data *nd, int i) {
}
int HP_npc_event_sub(struct map_session_data *sd, struct event_data *ev, const char *eventname) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_event_sub_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct event_data *ev, const char *eventname);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_event_sub_pre; hIndex++ ) {
@@ -40961,8 +40367,7 @@ void HP_npc_event_doall_sub(void *key, void *data, va_list ap) {
}
int HP_npc_event_do(const char *name) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_event_do_pre ) {
int (*preHookFunc) (const char *name);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_event_do_pre; hIndex++ ) {
@@ -40988,8 +40393,7 @@ int HP_npc_event_do(const char *name) {
}
int HP_npc_event_doall_id(const char *name, int rid) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_event_doall_id_pre ) {
int (*preHookFunc) (const char *name, int *rid);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_event_doall_id_pre; hIndex++ ) {
@@ -41015,8 +40419,7 @@ int HP_npc_event_doall_id(const char *name, int rid) {
}
int HP_npc_event_doall(const char *name) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_event_doall_pre ) {
int (*preHookFunc) (const char *name);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_event_doall_pre; hIndex++ ) {
@@ -41042,8 +40445,7 @@ int HP_npc_event_doall(const char *name) {
}
int HP_npc_event_do_clock(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_event_do_clock_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_event_do_clock_pre; hIndex++ ) {
@@ -41094,8 +40496,7 @@ void HP_npc_event_do_oninit(void) {
}
int HP_npc_timerevent_export(struct npc_data *nd, int i) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_timerevent_export_pre ) {
int (*preHookFunc) (struct npc_data *nd, int *i);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_timerevent_export_pre; hIndex++ ) {
@@ -41121,8 +40522,7 @@ int HP_npc_timerevent_export(struct npc_data *nd, int i) {
}
int HP_npc_timerevent(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_timerevent_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_timerevent_pre; hIndex++ ) {
@@ -41148,8 +40548,7 @@ int HP_npc_timerevent(int tid, unsigned int tick, int id, intptr_t data) {
}
int HP_npc_timerevent_start(struct npc_data *nd, int rid) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_timerevent_start_pre ) {
int (*preHookFunc) (struct npc_data *nd, int *rid);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_timerevent_start_pre; hIndex++ ) {
@@ -41175,8 +40574,7 @@ int HP_npc_timerevent_start(struct npc_data *nd, int rid) {
}
int HP_npc_timerevent_stop(struct npc_data *nd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_timerevent_stop_pre ) {
int (*preHookFunc) (struct npc_data *nd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_timerevent_stop_pre; hIndex++ ) {
@@ -41227,8 +40625,7 @@ void HP_npc_timerevent_quit(struct map_session_data *sd) {
}
int HP_npc_gettimerevent_tick(struct npc_data *nd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_gettimerevent_tick_pre ) {
int (*preHookFunc) (struct npc_data *nd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_gettimerevent_tick_pre; hIndex++ ) {
@@ -41254,8 +40651,7 @@ int HP_npc_gettimerevent_tick(struct npc_data *nd) {
}
int HP_npc_settimerevent_tick(struct npc_data *nd, int newtimer) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_settimerevent_tick_pre ) {
int (*preHookFunc) (struct npc_data *nd, int *newtimer);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_settimerevent_tick_pre; hIndex++ ) {
@@ -41281,8 +40677,7 @@ int HP_npc_settimerevent_tick(struct npc_data *nd, int newtimer) {
}
int HP_npc_event(struct map_session_data *sd, const char *eventname, int ontouch) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_event_pre ) {
int (*preHookFunc) (struct map_session_data *sd, const char *eventname, int *ontouch);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_event_pre; hIndex++ ) {
@@ -41308,8 +40703,7 @@ int HP_npc_event(struct map_session_data *sd, const char *eventname, int ontouch
}
int HP_npc_touch_areanpc_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_touch_areanpc_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_touch_areanpc_sub_pre; hIndex++ ) {
@@ -41341,8 +40735,7 @@ int HP_npc_touch_areanpc_sub(struct block_list *bl, va_list ap) {
}
int HP_npc_touchnext_areanpc(struct map_session_data *sd, bool leavemap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_touchnext_areanpc_pre ) {
int (*preHookFunc) (struct map_session_data *sd, bool *leavemap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_touchnext_areanpc_pre; hIndex++ ) {
@@ -41368,8 +40761,7 @@ int HP_npc_touchnext_areanpc(struct map_session_data *sd, bool leavemap) {
}
int HP_npc_touch_areanpc(struct map_session_data *sd, int16 m, int16 x, int16 y) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_touch_areanpc_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int16 *m, int16 *x, int16 *y);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_touch_areanpc_pre; hIndex++ ) {
@@ -41395,8 +40787,7 @@ int HP_npc_touch_areanpc(struct map_session_data *sd, int16 m, int16 x, int16 y)
}
int HP_npc_touch_areanpc2(struct mob_data *md) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_touch_areanpc2_pre ) {
int (*preHookFunc) (struct mob_data *md);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_touch_areanpc2_pre; hIndex++ ) {
@@ -41422,8 +40813,7 @@ int HP_npc_touch_areanpc2(struct mob_data *md) {
}
int HP_npc_check_areanpc(int flag, int16 m, int16 x, int16 y, int16 range) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_check_areanpc_pre ) {
int (*preHookFunc) (int *flag, int16 *m, int16 *x, int16 *y, int16 *range);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_check_areanpc_pre; hIndex++ ) {
@@ -41475,8 +40865,7 @@ struct npc_data* HP_npc_checknear(struct map_session_data *sd, struct block_list
}
int HP_npc_globalmessage(const char *name, const char *mes) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_globalmessage_pre ) {
int (*preHookFunc) (const char *name, const char *mes);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_globalmessage_pre; hIndex++ ) {
@@ -41527,8 +40916,7 @@ void HP_npc_run_tomb(struct map_session_data *sd, struct npc_data *nd) {
}
int HP_npc_click(struct map_session_data *sd, struct npc_data *nd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_click_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct npc_data *nd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_click_pre; hIndex++ ) {
@@ -41554,8 +40942,7 @@ int HP_npc_click(struct map_session_data *sd, struct npc_data *nd) {
}
int HP_npc_scriptcont(struct map_session_data *sd, int id, bool closing) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_scriptcont_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *id, bool *closing);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_scriptcont_pre; hIndex++ ) {
@@ -41581,8 +40968,7 @@ int HP_npc_scriptcont(struct map_session_data *sd, int id, bool closing) {
}
int HP_npc_buysellsel(struct map_session_data *sd, int id, int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_buysellsel_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *id, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_buysellsel_pre; hIndex++ ) {
@@ -41608,8 +40994,7 @@ int HP_npc_buysellsel(struct map_session_data *sd, int id, int type) {
}
int HP_npc_cashshop_buylist(struct map_session_data *sd, int points, int count, unsigned short *item_list) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_cashshop_buylist_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *points, int *count, unsigned short *item_list);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_cashshop_buylist_pre; hIndex++ ) {
@@ -41635,8 +41020,7 @@ int HP_npc_cashshop_buylist(struct map_session_data *sd, int points, int count,
}
int HP_npc_buylist_sub(struct map_session_data *sd, int n, unsigned short *item_list, struct npc_data *nd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_buylist_sub_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *n, unsigned short *item_list, struct npc_data *nd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_buylist_sub_pre; hIndex++ ) {
@@ -41662,8 +41046,7 @@ int HP_npc_buylist_sub(struct map_session_data *sd, int n, unsigned short *item_
}
int HP_npc_cashshop_buy(struct map_session_data *sd, int nameid, int amount, int points) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_cashshop_buy_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *nameid, int *amount, int *points);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_cashshop_buy_pre; hIndex++ ) {
@@ -41689,8 +41072,7 @@ int HP_npc_cashshop_buy(struct map_session_data *sd, int nameid, int amount, int
}
int HP_npc_buylist(struct map_session_data *sd, int n, unsigned short *item_list) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_buylist_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *n, unsigned short *item_list);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_buylist_pre; hIndex++ ) {
@@ -41716,8 +41098,7 @@ int HP_npc_buylist(struct map_session_data *sd, int n, unsigned short *item_list
}
int HP_npc_selllist_sub(struct map_session_data *sd, int n, unsigned short *item_list, struct npc_data *nd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_selllist_sub_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *n, unsigned short *item_list, struct npc_data *nd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_selllist_sub_pre; hIndex++ ) {
@@ -41743,8 +41124,7 @@ int HP_npc_selllist_sub(struct map_session_data *sd, int n, unsigned short *item
}
int HP_npc_selllist(struct map_session_data *sd, int n, unsigned short *item_list) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_selllist_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *n, unsigned short *item_list);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_selllist_pre; hIndex++ ) {
@@ -41770,8 +41150,7 @@ int HP_npc_selllist(struct map_session_data *sd, int n, unsigned short *item_lis
}
int HP_npc_remove_map(struct npc_data *nd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_remove_map_pre ) {
int (*preHookFunc) (struct npc_data *nd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_remove_map_pre; hIndex++ ) {
@@ -41797,8 +41176,7 @@ int HP_npc_remove_map(struct npc_data *nd) {
}
int HP_npc_unload_ev(DBKey key, DBData *data, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_unload_ev_pre ) {
int (*preHookFunc) (DBKey *key, DBData *data, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_unload_ev_pre; hIndex++ ) {
@@ -41830,8 +41208,7 @@ int HP_npc_unload_ev(DBKey key, DBData *data, va_list ap) {
}
int HP_npc_unload_ev_label(DBKey key, DBData *data, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_unload_ev_label_pre ) {
int (*preHookFunc) (DBKey *key, DBData *data, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_unload_ev_label_pre; hIndex++ ) {
@@ -41863,8 +41240,7 @@ int HP_npc_unload_ev_label(DBKey key, DBData *data, va_list ap) {
}
int HP_npc_unload_dup_sub(struct npc_data *nd, va_list args) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_unload_dup_sub_pre ) {
int (*preHookFunc) (struct npc_data *nd, va_list args);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_unload_dup_sub_pre; hIndex++ ) {
@@ -41921,8 +41297,7 @@ void HP_npc_unload_duplicates(struct npc_data *nd) {
}
int HP_npc_unload(struct npc_data *nd, bool single) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_unload_pre ) {
int (*preHookFunc) (struct npc_data *nd, bool *single);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_unload_pre; hIndex++ ) {
@@ -42229,8 +41604,7 @@ const char* HP_npc_parse_duplicate(char *w1, char *w2, char *w3, char *w4, const
}
int HP_npc_duplicate4instance(struct npc_data *snd, int16 m) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_duplicate4instance_pre ) {
int (*preHookFunc) (struct npc_data *snd, int16 *m);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_duplicate4instance_pre; hIndex++ ) {
@@ -42281,8 +41655,7 @@ void HP_npc_setcells(struct npc_data *nd) {
}
int HP_npc_unsetcells_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_unsetcells_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_unsetcells_sub_pre; hIndex++ ) {
@@ -42414,8 +41787,7 @@ void HP_npc_setclass(struct npc_data *nd, short class_) {
}
int HP_npc_do_atcmd_event(struct map_session_data *sd, const char *command, const char *message, const char *eventname) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_do_atcmd_event_pre ) {
int (*preHookFunc) (struct map_session_data *sd, const char *command, const char *message, const char *eventname);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_do_atcmd_event_pre; hIndex++ ) {
@@ -42569,8 +41941,7 @@ void HP_npc_parsesrcfile(const char *filepath, bool runOnInit) {
}
int HP_npc_script_event(struct map_session_data *sd, enum npce_event type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_script_event_pre ) {
int (*preHookFunc) (struct map_session_data *sd, enum npce_event *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_script_event_pre; hIndex++ ) {
@@ -42621,8 +41992,7 @@ void HP_npc_read_event_script(void) {
}
int HP_npc_path_db_clear_sub(DBKey key, DBData *data, va_list args) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_path_db_clear_sub_pre ) {
int (*preHookFunc) (DBKey *key, DBData *data, va_list args);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_path_db_clear_sub_pre; hIndex++ ) {
@@ -42654,8 +42024,7 @@ int HP_npc_path_db_clear_sub(DBKey key, DBData *data, va_list args) {
}
int HP_npc_ev_label_db_clear_sub(DBKey key, DBData *data, va_list args) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_ev_label_db_clear_sub_pre ) {
int (*preHookFunc) (DBKey *key, DBData *data, va_list args);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_ev_label_db_clear_sub_pre; hIndex++ ) {
@@ -42687,8 +42056,7 @@ int HP_npc_ev_label_db_clear_sub(DBKey key, DBData *data, va_list args) {
}
int HP_npc_reload(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_reload_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_reload_pre; hIndex++ ) {
@@ -42714,8 +42082,7 @@ int HP_npc_reload(void) {
}
bool HP_npc_unloadfile(const char *filepath) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_npc_unloadfile_pre ) {
bool (*preHookFunc) (const char *filepath);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_unloadfile_pre; hIndex++ ) {
@@ -42816,8 +42183,7 @@ void HP_npc_debug_warps(void) {
}
int HP_npc_secure_timeout_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_npc_secure_timeout_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_npc_secure_timeout_timer_pre; hIndex++ ) {
@@ -42946,8 +42312,7 @@ struct party_data* HP_party_searchname(const char *str) {
}
int HP_party_getmemberid(struct party_data *p, struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_party_getmemberid_pre ) {
int (*preHookFunc) (struct party_data *p, struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_party_getmemberid_pre; hIndex++ ) {
@@ -42999,8 +42364,7 @@ struct map_session_data* HP_party_getavailablesd(struct party_data *p) {
}
int HP_party_create(struct map_session_data *sd, char *name, int item, int item2) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_party_create_pre ) {
int (*preHookFunc) (struct map_session_data *sd, char *name, int *item, int *item2);
for(hIndex = 0; hIndex < HPMHooks.count.HP_party_create_pre; hIndex++ ) {
@@ -43051,8 +42415,7 @@ void HP_party_created(int account_id, int char_id, int fail, int party_id, char
}
int HP_party_request_info(int party_id, int char_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_party_request_info_pre ) {
int (*preHookFunc) (int *party_id, int *char_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_party_request_info_pre; hIndex++ ) {
@@ -43078,8 +42441,7 @@ int HP_party_request_info(int party_id, int char_id) {
}
int HP_party_invite(struct map_session_data *sd, struct map_session_data *tsd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_party_invite_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct map_session_data *tsd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_party_invite_pre; hIndex++ ) {
@@ -43130,8 +42492,7 @@ void HP_party_member_joined(struct map_session_data *sd) {
}
int HP_party_member_added(int party_id, int account_id, int char_id, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_party_member_added_pre ) {
int (*preHookFunc) (int *party_id, int *account_id, int *char_id, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_party_member_added_pre; hIndex++ ) {
@@ -43157,8 +42518,7 @@ int HP_party_member_added(int party_id, int account_id, int char_id, int flag) {
}
int HP_party_leave(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_party_leave_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_party_leave_pre; hIndex++ ) {
@@ -43184,8 +42544,7 @@ int HP_party_leave(struct map_session_data *sd) {
}
int HP_party_removemember(struct map_session_data *sd, int account_id, char *name) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_party_removemember_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *account_id, char *name);
for(hIndex = 0; hIndex < HPMHooks.count.HP_party_removemember_pre; hIndex++ ) {
@@ -43211,8 +42570,7 @@ int HP_party_removemember(struct map_session_data *sd, int account_id, char *nam
}
int HP_party_member_withdraw(int party_id, int account_id, int char_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_party_member_withdraw_pre ) {
int (*preHookFunc) (int *party_id, int *account_id, int *char_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_party_member_withdraw_pre; hIndex++ ) {
@@ -43263,8 +42621,7 @@ void HP_party_reply_invite(struct map_session_data *sd, int party_id, int flag)
}
int HP_party_recv_noinfo(int party_id, int char_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_party_recv_noinfo_pre ) {
int (*preHookFunc) (int *party_id, int *char_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_party_recv_noinfo_pre; hIndex++ ) {
@@ -43290,8 +42647,7 @@ int HP_party_recv_noinfo(int party_id, int char_id) {
}
int HP_party_recv_info(struct party *sp, int char_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_party_recv_info_pre ) {
int (*preHookFunc) (struct party *sp, int *char_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_party_recv_info_pre; hIndex++ ) {
@@ -43317,8 +42673,7 @@ int HP_party_recv_info(struct party *sp, int char_id) {
}
int HP_party_recv_movemap(int party_id, int account_id, int char_id, unsigned short mapid, int online, int lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_party_recv_movemap_pre ) {
int (*preHookFunc) (int *party_id, int *account_id, int *char_id, unsigned short *mapid, int *online, int *lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_party_recv_movemap_pre; hIndex++ ) {
@@ -43344,8 +42699,7 @@ int HP_party_recv_movemap(int party_id, int account_id, int char_id, unsigned sh
}
int HP_party_broken(int party_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_party_broken_pre ) {
int (*preHookFunc) (int *party_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_party_broken_pre; hIndex++ ) {
@@ -43371,8 +42725,7 @@ int HP_party_broken(int party_id) {
}
int HP_party_optionchanged(int party_id, int account_id, int exp, int item, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_party_optionchanged_pre ) {
int (*preHookFunc) (int *party_id, int *account_id, int *exp, int *item, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_party_optionchanged_pre; hIndex++ ) {
@@ -43398,8 +42751,7 @@ int HP_party_optionchanged(int party_id, int account_id, int exp, int item, int
}
int HP_party_changeoption(struct map_session_data *sd, int exp, int item) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_party_changeoption_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *exp, int *item);
for(hIndex = 0; hIndex < HPMHooks.count.HP_party_changeoption_pre; hIndex++ ) {
@@ -43425,8 +42777,7 @@ int HP_party_changeoption(struct map_session_data *sd, int exp, int item) {
}
bool HP_party_changeleader(struct map_session_data *sd, struct map_session_data *t_sd) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_party_changeleader_pre ) {
bool (*preHookFunc) (struct map_session_data *sd, struct map_session_data *t_sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_party_changeleader_pre; hIndex++ ) {
@@ -43502,8 +42853,7 @@ void HP_party_send_levelup(struct map_session_data *sd) {
}
int HP_party_send_logout(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_party_send_logout_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_party_send_logout_pre; hIndex++ ) {
@@ -43529,8 +42879,7 @@ int HP_party_send_logout(struct map_session_data *sd) {
}
int HP_party_send_message(struct map_session_data *sd, const char *mes, int len) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_party_send_message_pre ) {
int (*preHookFunc) (struct map_session_data *sd, const char *mes, int *len);
for(hIndex = 0; hIndex < HPMHooks.count.HP_party_send_message_pre; hIndex++ ) {
@@ -43556,8 +42905,7 @@ int HP_party_send_message(struct map_session_data *sd, const char *mes, int len)
}
int HP_party_recv_message(int party_id, int account_id, const char *mes, int len) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_party_recv_message_pre ) {
int (*preHookFunc) (int *party_id, int *account_id, const char *mes, int *len);
for(hIndex = 0; hIndex < HPMHooks.count.HP_party_recv_message_pre; hIndex++ ) {
@@ -43583,8 +42931,7 @@ int HP_party_recv_message(int party_id, int account_id, const char *mes, int len
}
int HP_party_skill_check(struct map_session_data *sd, int party_id, uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_party_skill_check_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *party_id, uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_party_skill_check_pre; hIndex++ ) {
@@ -43610,8 +42957,7 @@ int HP_party_skill_check(struct map_session_data *sd, int party_id, uint16 skill
}
int HP_party_send_xy_clear(struct party_data *p) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_party_send_xy_clear_pre ) {
int (*preHookFunc) (struct party_data *p);
for(hIndex = 0; hIndex < HPMHooks.count.HP_party_send_xy_clear_pre; hIndex++ ) {
@@ -43637,8 +42983,7 @@ int HP_party_send_xy_clear(struct party_data *p) {
}
int HP_party_exp_share(struct party_data *p, struct block_list *src, unsigned int base_exp, unsigned int job_exp, int zeny) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_party_exp_share_pre ) {
int (*preHookFunc) (struct party_data *p, struct block_list *src, unsigned int *base_exp, unsigned int *job_exp, int *zeny);
for(hIndex = 0; hIndex < HPMHooks.count.HP_party_exp_share_pre; hIndex++ ) {
@@ -43664,8 +43009,7 @@ int HP_party_exp_share(struct party_data *p, struct block_list *src, unsigned in
}
int HP_party_share_loot(struct party_data *p, struct map_session_data *sd, struct item *item_data, int first_charid) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_party_share_loot_pre ) {
int (*preHookFunc) (struct party_data *p, struct map_session_data *sd, struct item *item_data, int *first_charid);
for(hIndex = 0; hIndex < HPMHooks.count.HP_party_share_loot_pre; hIndex++ ) {
@@ -43691,8 +43035,7 @@ int HP_party_share_loot(struct party_data *p, struct map_session_data *sd, struc
}
int HP_party_send_dot_remove(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_party_send_dot_remove_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_party_send_dot_remove_pre; hIndex++ ) {
@@ -43718,8 +43061,7 @@ int HP_party_send_dot_remove(struct map_session_data *sd) {
}
int HP_party_sub_count(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_party_sub_count_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_party_sub_count_pre; hIndex++ ) {
@@ -43901,8 +43243,7 @@ void HP_party_recruit_search(struct map_session_data *sd, short level, short map
}
bool HP_party_booking_delete(struct map_session_data *sd) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_party_booking_delete_pre ) {
bool (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_party_booking_delete_pre; hIndex++ ) {
@@ -43928,8 +43269,7 @@ bool HP_party_booking_delete(struct map_session_data *sd) {
}
int HP_party_vforeachsamemap(int ( *func ) (struct block_list *, va_list), struct map_session_data *sd, int range, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_party_vforeachsamemap_pre ) {
int (*preHookFunc) (int ( *func ) (struct block_list *, va_list), struct map_session_data *sd, int *range, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_party_vforeachsamemap_pre; hIndex++ ) {
@@ -43961,8 +43301,7 @@ int HP_party_vforeachsamemap(int ( *func ) (struct block_list *, va_list), struc
}
int HP_party_send_xy_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_party_send_xy_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_party_send_xy_timer_pre; hIndex++ ) {
@@ -44090,8 +43429,7 @@ struct party_booking_ad_info* HP_party_create_booking_data(void) {
}
int HP_party_db_final(DBKey key, DBData *data, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_party_db_final_pre ) {
int (*preHookFunc) (DBKey *key, DBData *data, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_party_db_final_pre; hIndex++ ) {
@@ -44124,8 +43462,7 @@ int HP_party_db_final(DBKey key, DBData *data, va_list ap) {
/* path */
int HP_path_blownpos(int16 m, int16 x0, int16 y0, int16 dx, int16 dy, int count) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_path_blownpos_pre ) {
int (*preHookFunc) (int16 *m, int16 *x0, int16 *y0, int16 *dx, int16 *dy, int *count);
for(hIndex = 0; hIndex < HPMHooks.count.HP_path_blownpos_pre; hIndex++ ) {
@@ -44151,8 +43488,7 @@ int HP_path_blownpos(int16 m, int16 x0, int16 y0, int16 dx, int16 dy, int count)
}
bool HP_path_search(struct walkpath_data *wpd, int16 m, int16 x0, int16 y0, int16 x1, int16 y1, int flag, cell_chk cell) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_path_search_pre ) {
bool (*preHookFunc) (struct walkpath_data *wpd, int16 *m, int16 *x0, int16 *y0, int16 *x1, int16 *y1, int *flag, cell_chk *cell);
for(hIndex = 0; hIndex < HPMHooks.count.HP_path_search_pre; hIndex++ ) {
@@ -44178,8 +43514,7 @@ bool HP_path_search(struct walkpath_data *wpd, int16 m, int16 x0, int16 y0, int1
}
bool HP_path_search_long(struct shootpath_data *spd, int16 m, int16 x0, int16 y0, int16 x1, int16 y1, cell_chk cell) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_path_search_long_pre ) {
bool (*preHookFunc) (struct shootpath_data *spd, int16 *m, int16 *x0, int16 *y0, int16 *x1, int16 *y1, cell_chk *cell);
for(hIndex = 0; hIndex < HPMHooks.count.HP_path_search_long_pre; hIndex++ ) {
@@ -44205,8 +43540,7 @@ bool HP_path_search_long(struct shootpath_data *spd, int16 m, int16 x0, int16 y0
}
int HP_path_check_distance(int dx, int dy, int distance) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_path_check_distance_pre ) {
int (*preHookFunc) (int *dx, int *dy, int *distance);
for(hIndex = 0; hIndex < HPMHooks.count.HP_path_check_distance_pre; hIndex++ ) {
@@ -44232,8 +43566,7 @@ int HP_path_check_distance(int dx, int dy, int distance) {
}
unsigned int HP_path_distance(int dx, int dy) {
int hIndex = 0;
- unsigned int retVal___;
- memset(&retVal___, '\0', sizeof(unsigned int));
+ unsigned int retVal___ = 0;
if( HPMHooks.count.HP_path_distance_pre ) {
unsigned int (*preHookFunc) (int *dx, int *dy);
for(hIndex = 0; hIndex < HPMHooks.count.HP_path_distance_pre; hIndex++ ) {
@@ -44336,8 +43669,7 @@ struct map_session_data* HP_pc_get_dummy_sd(void) {
}
int HP_pc_class2idx(int class_) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_class2idx_pre ) {
int (*preHookFunc) (int *class_);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_class2idx_pre; hIndex++ ) {
@@ -44363,8 +43695,7 @@ int HP_pc_class2idx(int class_) {
}
int HP_pc_get_group_level(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_get_group_level_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_get_group_level_pre; hIndex++ ) {
@@ -44390,8 +43721,7 @@ int HP_pc_get_group_level(struct map_session_data *sd) {
}
bool HP_pc_can_give_items(struct map_session_data *sd) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_pc_can_give_items_pre ) {
bool (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_can_give_items_pre; hIndex++ ) {
@@ -44417,8 +43747,7 @@ bool HP_pc_can_give_items(struct map_session_data *sd) {
}
bool HP_pc_can_use_command(struct map_session_data *sd, const char *command) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_pc_can_use_command_pre ) {
bool (*preHookFunc) (struct map_session_data *sd, const char *command);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_can_use_command_pre; hIndex++ ) {
@@ -44444,8 +43773,7 @@ bool HP_pc_can_use_command(struct map_session_data *sd, const char *command) {
}
bool HP_pc_has_permission(struct map_session_data *sd, enum e_pc_permission permission) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_pc_has_permission_pre ) {
bool (*preHookFunc) (struct map_session_data *sd, enum e_pc_permission *permission);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_has_permission_pre; hIndex++ ) {
@@ -44471,8 +43799,7 @@ bool HP_pc_has_permission(struct map_session_data *sd, enum e_pc_permission perm
}
int HP_pc_set_group(struct map_session_data *sd, int group_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_set_group_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *group_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_set_group_pre; hIndex++ ) {
@@ -44498,8 +43825,7 @@ int HP_pc_set_group(struct map_session_data *sd, int group_id) {
}
bool HP_pc_should_log_commands(struct map_session_data *sd) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_pc_should_log_commands_pre ) {
bool (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_should_log_commands_pre; hIndex++ ) {
@@ -44525,8 +43851,7 @@ bool HP_pc_should_log_commands(struct map_session_data *sd) {
}
int HP_pc_setrestartvalue(struct map_session_data *sd, int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_setrestartvalue_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setrestartvalue_pre; hIndex++ ) {
@@ -44552,8 +43877,7 @@ int HP_pc_setrestartvalue(struct map_session_data *sd, int type) {
}
int HP_pc_makesavestatus(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_makesavestatus_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_makesavestatus_pre; hIndex++ ) {
@@ -44604,8 +43928,7 @@ void HP_pc_respawn(struct map_session_data *sd, clr_type clrtype) {
}
int HP_pc_setnewpc(struct map_session_data *sd, int account_id, int char_id, int login_id1, unsigned int client_tick, int sex, int fd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_setnewpc_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *account_id, int *char_id, int *login_id1, unsigned int *client_tick, int *sex, int *fd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setnewpc_pre; hIndex++ ) {
@@ -44631,8 +43954,7 @@ int HP_pc_setnewpc(struct map_session_data *sd, int account_id, int char_id, int
}
bool HP_pc_authok(struct map_session_data *sd, int login_id2, time_t expiration_time, int group_id, struct mmo_charstatus *st, bool changing_mapservers) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_pc_authok_pre ) {
bool (*preHookFunc) (struct map_session_data *sd, int *login_id2, time_t *expiration_time, int *group_id, struct mmo_charstatus *st, bool *changing_mapservers);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_authok_pre; hIndex++ ) {
@@ -44683,8 +44005,7 @@ void HP_pc_authfail(struct map_session_data *sd) {
}
int HP_pc_reg_received(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_reg_received_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_reg_received_pre; hIndex++ ) {
@@ -44710,8 +44031,7 @@ int HP_pc_reg_received(struct map_session_data *sd) {
}
int HP_pc_isequip(struct map_session_data *sd, int n) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_isequip_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *n);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_isequip_pre; hIndex++ ) {
@@ -44737,8 +44057,7 @@ int HP_pc_isequip(struct map_session_data *sd, int n) {
}
int HP_pc_equippoint(struct map_session_data *sd, int n) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_equippoint_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *n);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_equippoint_pre; hIndex++ ) {
@@ -44764,8 +44083,7 @@ int HP_pc_equippoint(struct map_session_data *sd, int n) {
}
int HP_pc_setinventorydata(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_setinventorydata_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setinventorydata_pre; hIndex++ ) {
@@ -44791,8 +44109,7 @@ int HP_pc_setinventorydata(struct map_session_data *sd) {
}
int HP_pc_checkskill(struct map_session_data *sd, uint16 skill_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_checkskill_pre ) {
int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_checkskill_pre; hIndex++ ) {
@@ -44818,8 +44135,7 @@ int HP_pc_checkskill(struct map_session_data *sd, uint16 skill_id) {
}
int HP_pc_checkskill2(struct map_session_data *sd, uint16 index) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_checkskill2_pre ) {
int (*preHookFunc) (struct map_session_data *sd, uint16 *index);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_checkskill2_pre; hIndex++ ) {
@@ -44845,8 +44161,7 @@ int HP_pc_checkskill2(struct map_session_data *sd, uint16 index) {
}
int HP_pc_checkallowskill(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_checkallowskill_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_checkallowskill_pre; hIndex++ ) {
@@ -44872,8 +44187,7 @@ int HP_pc_checkallowskill(struct map_session_data *sd) {
}
int HP_pc_checkequip(struct map_session_data *sd, int pos) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_checkequip_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *pos);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_checkequip_pre; hIndex++ ) {
@@ -44899,8 +44213,7 @@ int HP_pc_checkequip(struct map_session_data *sd, int pos) {
}
int HP_pc_calc_skilltree(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_calc_skilltree_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_calc_skilltree_pre; hIndex++ ) {
@@ -44926,8 +44239,7 @@ int HP_pc_calc_skilltree(struct map_session_data *sd) {
}
int HP_pc_calc_skilltree_normalize_job(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_calc_skilltree_normalize_job_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_calc_skilltree_normalize_job_pre; hIndex++ ) {
@@ -44953,8 +44265,7 @@ int HP_pc_calc_skilltree_normalize_job(struct map_session_data *sd) {
}
int HP_pc_clean_skilltree(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_clean_skilltree_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_clean_skilltree_pre; hIndex++ ) {
@@ -44980,8 +44291,7 @@ int HP_pc_clean_skilltree(struct map_session_data *sd) {
}
int HP_pc_setpos(struct map_session_data *sd, unsigned short mapindex, int x, int y, clr_type clrtype) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_setpos_pre ) {
int (*preHookFunc) (struct map_session_data *sd, unsigned short *mapindex, int *x, int *y, clr_type *clrtype);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setpos_pre; hIndex++ ) {
@@ -45007,8 +44317,7 @@ int HP_pc_setpos(struct map_session_data *sd, unsigned short mapindex, int x, in
}
int HP_pc_setsavepoint(struct map_session_data *sd, short mapindex, int x, int y) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_setsavepoint_pre ) {
int (*preHookFunc) (struct map_session_data *sd, short *mapindex, int *x, int *y);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setsavepoint_pre; hIndex++ ) {
@@ -45034,8 +44343,7 @@ int HP_pc_setsavepoint(struct map_session_data *sd, short mapindex, int x, int y
}
int HP_pc_randomwarp(struct map_session_data *sd, clr_type type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_randomwarp_pre ) {
int (*preHookFunc) (struct map_session_data *sd, clr_type *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_randomwarp_pre; hIndex++ ) {
@@ -45061,8 +44369,7 @@ int HP_pc_randomwarp(struct map_session_data *sd, clr_type type) {
}
int HP_pc_memo(struct map_session_data *sd, int pos) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_memo_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *pos);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_memo_pre; hIndex++ ) {
@@ -45088,8 +44395,7 @@ int HP_pc_memo(struct map_session_data *sd, int pos) {
}
int HP_pc_checkadditem(struct map_session_data *sd, int nameid, int amount) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_checkadditem_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *nameid, int *amount);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_checkadditem_pre; hIndex++ ) {
@@ -45115,8 +44421,7 @@ int HP_pc_checkadditem(struct map_session_data *sd, int nameid, int amount) {
}
int HP_pc_inventoryblank(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_inventoryblank_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_inventoryblank_pre; hIndex++ ) {
@@ -45142,8 +44447,7 @@ int HP_pc_inventoryblank(struct map_session_data *sd) {
}
int HP_pc_search_inventory(struct map_session_data *sd, int item_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_search_inventory_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *item_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_search_inventory_pre; hIndex++ ) {
@@ -45169,8 +44473,7 @@ int HP_pc_search_inventory(struct map_session_data *sd, int item_id) {
}
int HP_pc_payzeny(struct map_session_data *sd, int zeny, enum e_log_pick_type type, struct map_session_data *tsd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_payzeny_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *zeny, enum e_log_pick_type *type, struct map_session_data *tsd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_payzeny_pre; hIndex++ ) {
@@ -45196,8 +44499,7 @@ int HP_pc_payzeny(struct map_session_data *sd, int zeny, enum e_log_pick_type ty
}
int HP_pc_additem(struct map_session_data *sd, struct item *item_data, int amount, e_log_pick_type log_type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_additem_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct item *item_data, int *amount, e_log_pick_type *log_type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_additem_pre; hIndex++ ) {
@@ -45223,8 +44525,7 @@ int HP_pc_additem(struct map_session_data *sd, struct item *item_data, int amoun
}
int HP_pc_getzeny(struct map_session_data *sd, int zeny, enum e_log_pick_type type, struct map_session_data *tsd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_getzeny_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *zeny, enum e_log_pick_type *type, struct map_session_data *tsd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_getzeny_pre; hIndex++ ) {
@@ -45250,8 +44551,7 @@ int HP_pc_getzeny(struct map_session_data *sd, int zeny, enum e_log_pick_type ty
}
int HP_pc_delitem(struct map_session_data *sd, int n, int amount, int type, short reason, e_log_pick_type log_type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_delitem_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *n, int *amount, int *type, short *reason, e_log_pick_type *log_type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_delitem_pre; hIndex++ ) {
@@ -45277,8 +44577,7 @@ int HP_pc_delitem(struct map_session_data *sd, int n, int amount, int type, shor
}
int HP_pc_paycash(struct map_session_data *sd, int price, int points) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_paycash_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *price, int *points);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_paycash_pre; hIndex++ ) {
@@ -45304,8 +44603,7 @@ int HP_pc_paycash(struct map_session_data *sd, int price, int points) {
}
int HP_pc_getcash(struct map_session_data *sd, int cash, int points) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_getcash_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *cash, int *points);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_getcash_pre; hIndex++ ) {
@@ -45331,8 +44629,7 @@ int HP_pc_getcash(struct map_session_data *sd, int cash, int points) {
}
int HP_pc_cart_additem(struct map_session_data *sd, struct item *item_data, int amount, e_log_pick_type log_type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_cart_additem_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct item *item_data, int *amount, e_log_pick_type *log_type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_cart_additem_pre; hIndex++ ) {
@@ -45358,8 +44655,7 @@ int HP_pc_cart_additem(struct map_session_data *sd, struct item *item_data, int
}
int HP_pc_cart_delitem(struct map_session_data *sd, int n, int amount, int type, e_log_pick_type log_type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_cart_delitem_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *n, int *amount, int *type, e_log_pick_type *log_type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_cart_delitem_pre; hIndex++ ) {
@@ -45385,8 +44681,7 @@ int HP_pc_cart_delitem(struct map_session_data *sd, int n, int amount, int type,
}
int HP_pc_putitemtocart(struct map_session_data *sd, int idx, int amount) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_putitemtocart_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *idx, int *amount);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_putitemtocart_pre; hIndex++ ) {
@@ -45412,8 +44707,7 @@ int HP_pc_putitemtocart(struct map_session_data *sd, int idx, int amount) {
}
int HP_pc_getitemfromcart(struct map_session_data *sd, int idx, int amount) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_getitemfromcart_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *idx, int *amount);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_getitemfromcart_pre; hIndex++ ) {
@@ -45439,8 +44733,7 @@ int HP_pc_getitemfromcart(struct map_session_data *sd, int idx, int amount) {
}
int HP_pc_cartitem_amount(struct map_session_data *sd, int idx, int amount) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_cartitem_amount_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *idx, int *amount);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_cartitem_amount_pre; hIndex++ ) {
@@ -45466,8 +44759,7 @@ int HP_pc_cartitem_amount(struct map_session_data *sd, int idx, int amount) {
}
int HP_pc_takeitem(struct map_session_data *sd, struct flooritem_data *fitem) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_takeitem_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct flooritem_data *fitem);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_takeitem_pre; hIndex++ ) {
@@ -45493,8 +44785,7 @@ int HP_pc_takeitem(struct map_session_data *sd, struct flooritem_data *fitem) {
}
int HP_pc_dropitem(struct map_session_data *sd, int n, int amount) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_dropitem_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *n, int *amount);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_dropitem_pre; hIndex++ ) {
@@ -45520,8 +44811,7 @@ int HP_pc_dropitem(struct map_session_data *sd, int n, int amount) {
}
bool HP_pc_isequipped(struct map_session_data *sd, int nameid) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_pc_isequipped_pre ) {
bool (*preHookFunc) (struct map_session_data *sd, int *nameid);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_isequipped_pre; hIndex++ ) {
@@ -45547,8 +44837,7 @@ bool HP_pc_isequipped(struct map_session_data *sd, int nameid) {
}
bool HP_pc_can_Adopt(struct map_session_data *p1_sd, struct map_session_data *p2_sd, struct map_session_data *b_sd) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_pc_can_Adopt_pre ) {
bool (*preHookFunc) (struct map_session_data *p1_sd, struct map_session_data *p2_sd, struct map_session_data *b_sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_can_Adopt_pre; hIndex++ ) {
@@ -45574,8 +44863,7 @@ bool HP_pc_can_Adopt(struct map_session_data *p1_sd, struct map_session_data *p2
}
bool HP_pc_adoption(struct map_session_data *p1_sd, struct map_session_data *p2_sd, struct map_session_data *b_sd) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_pc_adoption_pre ) {
bool (*preHookFunc) (struct map_session_data *p1_sd, struct map_session_data *p2_sd, struct map_session_data *b_sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_adoption_pre; hIndex++ ) {
@@ -45601,8 +44889,7 @@ bool HP_pc_adoption(struct map_session_data *p1_sd, struct map_session_data *p2_
}
int HP_pc_updateweightstatus(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_updateweightstatus_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_updateweightstatus_pre; hIndex++ ) {
@@ -45628,8 +44915,7 @@ int HP_pc_updateweightstatus(struct map_session_data *sd) {
}
int HP_pc_addautobonus(struct s_autobonus *bonus, char max, const char *bonus_script, short rate, unsigned int dur, short atk_type, const char *o_script, unsigned short pos, bool onskill) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_addautobonus_pre ) {
int (*preHookFunc) (struct s_autobonus *bonus, char *max, const char *bonus_script, short *rate, unsigned int *dur, short *atk_type, const char *o_script, unsigned short *pos, bool *onskill);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_addautobonus_pre; hIndex++ ) {
@@ -45655,8 +44941,7 @@ int HP_pc_addautobonus(struct s_autobonus *bonus, char max, const char *bonus_sc
}
int HP_pc_exeautobonus(struct map_session_data *sd, struct s_autobonus *bonus) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_exeautobonus_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct s_autobonus *bonus);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_exeautobonus_pre; hIndex++ ) {
@@ -45682,8 +44967,7 @@ int HP_pc_exeautobonus(struct map_session_data *sd, struct s_autobonus *bonus) {
}
int HP_pc_endautobonus(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_endautobonus_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_endautobonus_pre; hIndex++ ) {
@@ -45709,8 +44993,7 @@ int HP_pc_endautobonus(int tid, unsigned int tick, int id, intptr_t data) {
}
int HP_pc_delautobonus(struct map_session_data *sd, struct s_autobonus *bonus, char max, bool restore) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_delautobonus_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct s_autobonus *bonus, char *max, bool *restore);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_delautobonus_pre; hIndex++ ) {
@@ -45736,8 +45019,7 @@ int HP_pc_delautobonus(struct map_session_data *sd, struct s_autobonus *bonus, c
}
int HP_pc_bonus(struct map_session_data *sd, int type, int val) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_bonus_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *type, int *val);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bonus_pre; hIndex++ ) {
@@ -45763,8 +45045,7 @@ int HP_pc_bonus(struct map_session_data *sd, int type, int val) {
}
int HP_pc_bonus2(struct map_session_data *sd, int type, int type2, int val) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_bonus2_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *type, int *type2, int *val);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bonus2_pre; hIndex++ ) {
@@ -45790,8 +45071,7 @@ int HP_pc_bonus2(struct map_session_data *sd, int type, int type2, int val) {
}
int HP_pc_bonus3(struct map_session_data *sd, int type, int type2, int type3, int val) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_bonus3_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *type, int *type2, int *type3, int *val);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bonus3_pre; hIndex++ ) {
@@ -45817,8 +45097,7 @@ int HP_pc_bonus3(struct map_session_data *sd, int type, int type2, int type3, in
}
int HP_pc_bonus4(struct map_session_data *sd, int type, int type2, int type3, int type4, int val) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_bonus4_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *type, int *type2, int *type3, int *type4, int *val);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bonus4_pre; hIndex++ ) {
@@ -45844,8 +45123,7 @@ int HP_pc_bonus4(struct map_session_data *sd, int type, int type2, int type3, in
}
int HP_pc_bonus5(struct map_session_data *sd, int type, int type2, int type3, int type4, int type5, int val) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_bonus5_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *type, int *type2, int *type3, int *type4, int *type5, int *val);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bonus5_pre; hIndex++ ) {
@@ -45871,8 +45149,7 @@ int HP_pc_bonus5(struct map_session_data *sd, int type, int type2, int type3, in
}
int HP_pc_skill(struct map_session_data *sd, int id, int level, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_skill_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *id, int *level, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_skill_pre; hIndex++ ) {
@@ -45898,8 +45175,7 @@ int HP_pc_skill(struct map_session_data *sd, int id, int level, int flag) {
}
int HP_pc_insert_card(struct map_session_data *sd, int idx_card, int idx_equip) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_insert_card_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *idx_card, int *idx_equip);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_insert_card_pre; hIndex++ ) {
@@ -45925,8 +45201,7 @@ int HP_pc_insert_card(struct map_session_data *sd, int idx_card, int idx_equip)
}
int HP_pc_steal_item(struct map_session_data *sd, struct block_list *bl, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_steal_item_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct block_list *bl, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_steal_item_pre; hIndex++ ) {
@@ -45952,8 +45227,7 @@ int HP_pc_steal_item(struct map_session_data *sd, struct block_list *bl, uint16
}
int HP_pc_steal_coin(struct map_session_data *sd, struct block_list *bl) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_steal_coin_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct block_list *bl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_steal_coin_pre; hIndex++ ) {
@@ -45979,8 +45253,7 @@ int HP_pc_steal_coin(struct map_session_data *sd, struct block_list *bl) {
}
int HP_pc_modifybuyvalue(struct map_session_data *sd, int orig_value) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_modifybuyvalue_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *orig_value);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_modifybuyvalue_pre; hIndex++ ) {
@@ -46006,8 +45279,7 @@ int HP_pc_modifybuyvalue(struct map_session_data *sd, int orig_value) {
}
int HP_pc_modifysellvalue(struct map_session_data *sd, int orig_value) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_modifysellvalue_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *orig_value);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_modifysellvalue_pre; hIndex++ ) {
@@ -46033,8 +45305,7 @@ int HP_pc_modifysellvalue(struct map_session_data *sd, int orig_value) {
}
int HP_pc_follow(struct map_session_data *sd, int target_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_follow_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *target_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_follow_pre; hIndex++ ) {
@@ -46060,8 +45331,7 @@ int HP_pc_follow(struct map_session_data *sd, int target_id) {
}
int HP_pc_stop_following(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_stop_following_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_stop_following_pre; hIndex++ ) {
@@ -46087,8 +45357,7 @@ int HP_pc_stop_following(struct map_session_data *sd) {
}
unsigned int HP_pc_maxbaselv(struct map_session_data *sd) {
int hIndex = 0;
- unsigned int retVal___;
- memset(&retVal___, '\0', sizeof(unsigned int));
+ unsigned int retVal___ = 0;
if( HPMHooks.count.HP_pc_maxbaselv_pre ) {
unsigned int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_maxbaselv_pre; hIndex++ ) {
@@ -46114,8 +45383,7 @@ unsigned int HP_pc_maxbaselv(struct map_session_data *sd) {
}
unsigned int HP_pc_maxjoblv(struct map_session_data *sd) {
int hIndex = 0;
- unsigned int retVal___;
- memset(&retVal___, '\0', sizeof(unsigned int));
+ unsigned int retVal___ = 0;
if( HPMHooks.count.HP_pc_maxjoblv_pre ) {
unsigned int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_maxjoblv_pre; hIndex++ ) {
@@ -46141,8 +45409,7 @@ unsigned int HP_pc_maxjoblv(struct map_session_data *sd) {
}
int HP_pc_checkbaselevelup(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_checkbaselevelup_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_checkbaselevelup_pre; hIndex++ ) {
@@ -46168,8 +45435,7 @@ int HP_pc_checkbaselevelup(struct map_session_data *sd) {
}
int HP_pc_checkjoblevelup(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_checkjoblevelup_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_checkjoblevelup_pre; hIndex++ ) {
@@ -46195,8 +45461,7 @@ int HP_pc_checkjoblevelup(struct map_session_data *sd) {
}
int HP_pc_gainexp(struct map_session_data *sd, struct block_list *src, unsigned int base_exp, unsigned int job_exp, bool is_quest) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_gainexp_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct block_list *src, unsigned int *base_exp, unsigned int *job_exp, bool *is_quest);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_gainexp_pre; hIndex++ ) {
@@ -46222,8 +45487,7 @@ int HP_pc_gainexp(struct map_session_data *sd, struct block_list *src, unsigned
}
unsigned int HP_pc_nextbaseexp(struct map_session_data *sd) {
int hIndex = 0;
- unsigned int retVal___;
- memset(&retVal___, '\0', sizeof(unsigned int));
+ unsigned int retVal___ = 0;
if( HPMHooks.count.HP_pc_nextbaseexp_pre ) {
unsigned int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_nextbaseexp_pre; hIndex++ ) {
@@ -46249,8 +45513,7 @@ unsigned int HP_pc_nextbaseexp(struct map_session_data *sd) {
}
unsigned int HP_pc_thisbaseexp(struct map_session_data *sd) {
int hIndex = 0;
- unsigned int retVal___;
- memset(&retVal___, '\0', sizeof(unsigned int));
+ unsigned int retVal___ = 0;
if( HPMHooks.count.HP_pc_thisbaseexp_pre ) {
unsigned int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_thisbaseexp_pre; hIndex++ ) {
@@ -46276,8 +45539,7 @@ unsigned int HP_pc_thisbaseexp(struct map_session_data *sd) {
}
unsigned int HP_pc_nextjobexp(struct map_session_data *sd) {
int hIndex = 0;
- unsigned int retVal___;
- memset(&retVal___, '\0', sizeof(unsigned int));
+ unsigned int retVal___ = 0;
if( HPMHooks.count.HP_pc_nextjobexp_pre ) {
unsigned int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_nextjobexp_pre; hIndex++ ) {
@@ -46303,8 +45565,7 @@ unsigned int HP_pc_nextjobexp(struct map_session_data *sd) {
}
unsigned int HP_pc_thisjobexp(struct map_session_data *sd) {
int hIndex = 0;
- unsigned int retVal___;
- memset(&retVal___, '\0', sizeof(unsigned int));
+ unsigned int retVal___ = 0;
if( HPMHooks.count.HP_pc_thisjobexp_pre ) {
unsigned int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_thisjobexp_pre; hIndex++ ) {
@@ -46330,8 +45591,7 @@ unsigned int HP_pc_thisjobexp(struct map_session_data *sd) {
}
int HP_pc_gets_status_point(int level) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_gets_status_point_pre ) {
int (*preHookFunc) (int *level);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_gets_status_point_pre; hIndex++ ) {
@@ -46357,8 +45617,7 @@ int HP_pc_gets_status_point(int level) {
}
int HP_pc_need_status_point(struct map_session_data *sd, int type, int val) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_need_status_point_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *type, int *val);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_need_status_point_pre; hIndex++ ) {
@@ -46384,8 +45643,7 @@ int HP_pc_need_status_point(struct map_session_data *sd, int type, int val) {
}
int HP_pc_statusup(struct map_session_data *sd, int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_statusup_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_statusup_pre; hIndex++ ) {
@@ -46411,8 +45669,7 @@ int HP_pc_statusup(struct map_session_data *sd, int type) {
}
int HP_pc_statusup2(struct map_session_data *sd, int type, int val) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_statusup2_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *type, int *val);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_statusup2_pre; hIndex++ ) {
@@ -46438,8 +45695,7 @@ int HP_pc_statusup2(struct map_session_data *sd, int type, int val) {
}
int HP_pc_skillup(struct map_session_data *sd, uint16 skill_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_skillup_pre ) {
int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_skillup_pre; hIndex++ ) {
@@ -46465,8 +45721,7 @@ int HP_pc_skillup(struct map_session_data *sd, uint16 skill_id) {
}
int HP_pc_allskillup(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_allskillup_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_allskillup_pre; hIndex++ ) {
@@ -46492,8 +45747,7 @@ int HP_pc_allskillup(struct map_session_data *sd) {
}
int HP_pc_resetlvl(struct map_session_data *sd, int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_resetlvl_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_resetlvl_pre; hIndex++ ) {
@@ -46519,8 +45773,7 @@ int HP_pc_resetlvl(struct map_session_data *sd, int type) {
}
int HP_pc_resetstate(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_resetstate_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_resetstate_pre; hIndex++ ) {
@@ -46546,8 +45799,7 @@ int HP_pc_resetstate(struct map_session_data *sd) {
}
int HP_pc_resetskill(struct map_session_data *sd, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_resetskill_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_resetskill_pre; hIndex++ ) {
@@ -46573,8 +45825,7 @@ int HP_pc_resetskill(struct map_session_data *sd, int flag) {
}
int HP_pc_resetfeel(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_resetfeel_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_resetfeel_pre; hIndex++ ) {
@@ -46600,8 +45851,7 @@ int HP_pc_resetfeel(struct map_session_data *sd) {
}
int HP_pc_resethate(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_resethate_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_resethate_pre; hIndex++ ) {
@@ -46627,8 +45877,7 @@ int HP_pc_resethate(struct map_session_data *sd) {
}
int HP_pc_equipitem(struct map_session_data *sd, int n, int req_pos) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_equipitem_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *n, int *req_pos);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_equipitem_pre; hIndex++ ) {
@@ -46654,8 +45903,7 @@ int HP_pc_equipitem(struct map_session_data *sd, int n, int req_pos) {
}
int HP_pc_unequipitem(struct map_session_data *sd, int n, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_unequipitem_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *n, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_unequipitem_pre; hIndex++ ) {
@@ -46681,8 +45929,7 @@ int HP_pc_unequipitem(struct map_session_data *sd, int n, int flag) {
}
int HP_pc_checkitem(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_checkitem_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_checkitem_pre; hIndex++ ) {
@@ -46708,8 +45955,7 @@ int HP_pc_checkitem(struct map_session_data *sd) {
}
int HP_pc_useitem(struct map_session_data *sd, int n) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_useitem_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *n);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_useitem_pre; hIndex++ ) {
@@ -46735,8 +45981,7 @@ int HP_pc_useitem(struct map_session_data *sd, int n) {
}
int HP_pc_skillatk_bonus(struct map_session_data *sd, uint16 skill_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_skillatk_bonus_pre ) {
int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_skillatk_bonus_pre; hIndex++ ) {
@@ -46762,8 +46007,7 @@ int HP_pc_skillatk_bonus(struct map_session_data *sd, uint16 skill_id) {
}
int HP_pc_skillheal_bonus(struct map_session_data *sd, uint16 skill_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_skillheal_bonus_pre ) {
int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_skillheal_bonus_pre; hIndex++ ) {
@@ -46789,8 +46033,7 @@ int HP_pc_skillheal_bonus(struct map_session_data *sd, uint16 skill_id) {
}
int HP_pc_skillheal2_bonus(struct map_session_data *sd, uint16 skill_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_skillheal2_bonus_pre ) {
int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_skillheal2_bonus_pre; hIndex++ ) {
@@ -46841,8 +46084,7 @@ void HP_pc_damage(struct map_session_data *sd, struct block_list *src, unsigned
}
int HP_pc_dead(struct map_session_data *sd, struct block_list *src) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_dead_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct block_list *src);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_dead_pre; hIndex++ ) {
@@ -46918,8 +46160,7 @@ void HP_pc_heal(struct map_session_data *sd, unsigned int hp, unsigned int sp, i
}
int HP_pc_itemheal(struct map_session_data *sd, int itemid, int hp, int sp) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_itemheal_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *itemid, int *hp, int *sp);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_itemheal_pre; hIndex++ ) {
@@ -46945,8 +46186,7 @@ int HP_pc_itemheal(struct map_session_data *sd, int itemid, int hp, int sp) {
}
int HP_pc_percentheal(struct map_session_data *sd, int hp, int sp) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_percentheal_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *hp, int *sp);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_percentheal_pre; hIndex++ ) {
@@ -46972,8 +46212,7 @@ int HP_pc_percentheal(struct map_session_data *sd, int hp, int sp) {
}
int HP_pc_jobchange(struct map_session_data *sd, int job, int upper) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_jobchange_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *job, int *upper);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_jobchange_pre; hIndex++ ) {
@@ -46999,8 +46238,7 @@ int HP_pc_jobchange(struct map_session_data *sd, int job, int upper) {
}
int HP_pc_setoption(struct map_session_data *sd, int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_setoption_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setoption_pre; hIndex++ ) {
@@ -47026,8 +46264,7 @@ int HP_pc_setoption(struct map_session_data *sd, int type) {
}
int HP_pc_setcart(struct map_session_data *sd, int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_setcart_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setcart_pre; hIndex++ ) {
@@ -47053,8 +46290,7 @@ int HP_pc_setcart(struct map_session_data *sd, int type) {
}
int HP_pc_setfalcon(struct map_session_data *sd, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_setfalcon_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setfalcon_pre; hIndex++ ) {
@@ -47080,8 +46316,7 @@ int HP_pc_setfalcon(struct map_session_data *sd, int flag) {
}
int HP_pc_setriding(struct map_session_data *sd, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_setriding_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setriding_pre; hIndex++ ) {
@@ -47107,8 +46342,7 @@ int HP_pc_setriding(struct map_session_data *sd, int flag) {
}
int HP_pc_setmadogear(struct map_session_data *sd, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_setmadogear_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setmadogear_pre; hIndex++ ) {
@@ -47134,8 +46368,7 @@ int HP_pc_setmadogear(struct map_session_data *sd, int flag) {
}
int HP_pc_changelook(struct map_session_data *sd, int type, int val) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_changelook_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *type, int *val);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_changelook_pre; hIndex++ ) {
@@ -47161,8 +46394,7 @@ int HP_pc_changelook(struct map_session_data *sd, int type, int val) {
}
int HP_pc_equiplookall(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_equiplookall_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_equiplookall_pre; hIndex++ ) {
@@ -47188,8 +46420,7 @@ int HP_pc_equiplookall(struct map_session_data *sd) {
}
int HP_pc_readparam(struct map_session_data *sd, int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_readparam_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_readparam_pre; hIndex++ ) {
@@ -47215,8 +46446,7 @@ int HP_pc_readparam(struct map_session_data *sd, int type) {
}
int HP_pc_setparam(struct map_session_data *sd, int type, int val) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_setparam_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *type, int *val);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setparam_pre; hIndex++ ) {
@@ -47242,8 +46472,7 @@ int HP_pc_setparam(struct map_session_data *sd, int type, int val) {
}
int HP_pc_readreg(struct map_session_data *sd, int reg) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_readreg_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *reg);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_readreg_pre; hIndex++ ) {
@@ -47269,8 +46498,7 @@ int HP_pc_readreg(struct map_session_data *sd, int reg) {
}
int HP_pc_setreg(struct map_session_data *sd, int reg, int val) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_setreg_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *reg, int *val);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setreg_pre; hIndex++ ) {
@@ -47322,8 +46550,7 @@ char* HP_pc_readregstr(struct map_session_data *sd, int reg) {
}
int HP_pc_setregstr(struct map_session_data *sd, int reg, const char *str) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_setregstr_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *reg, const char *str);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setregstr_pre; hIndex++ ) {
@@ -47349,8 +46576,7 @@ int HP_pc_setregstr(struct map_session_data *sd, int reg, const char *str) {
}
int HP_pc_readregistry(struct map_session_data *sd, const char *reg, int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_readregistry_pre ) {
int (*preHookFunc) (struct map_session_data *sd, const char *reg, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_readregistry_pre; hIndex++ ) {
@@ -47376,8 +46602,7 @@ int HP_pc_readregistry(struct map_session_data *sd, const char *reg, int type) {
}
int HP_pc_setregistry(struct map_session_data *sd, const char *reg, int val, int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_setregistry_pre ) {
int (*preHookFunc) (struct map_session_data *sd, const char *reg, int *val, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setregistry_pre; hIndex++ ) {
@@ -47429,8 +46654,7 @@ char* HP_pc_readregistry_str(struct map_session_data *sd, const char *reg, int t
}
int HP_pc_setregistry_str(struct map_session_data *sd, const char *reg, const char *val, int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_setregistry_str_pre ) {
int (*preHookFunc) (struct map_session_data *sd, const char *reg, const char *val, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setregistry_str_pre; hIndex++ ) {
@@ -47456,8 +46680,7 @@ int HP_pc_setregistry_str(struct map_session_data *sd, const char *reg, const ch
}
int HP_pc_addeventtimer(struct map_session_data *sd, int tick, const char *name) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_addeventtimer_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *tick, const char *name);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_addeventtimer_pre; hIndex++ ) {
@@ -47483,8 +46706,7 @@ int HP_pc_addeventtimer(struct map_session_data *sd, int tick, const char *name)
}
int HP_pc_deleventtimer(struct map_session_data *sd, const char *name) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_deleventtimer_pre ) {
int (*preHookFunc) (struct map_session_data *sd, const char *name);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_deleventtimer_pre; hIndex++ ) {
@@ -47510,8 +46732,7 @@ int HP_pc_deleventtimer(struct map_session_data *sd, const char *name) {
}
int HP_pc_cleareventtimer(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_cleareventtimer_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_cleareventtimer_pre; hIndex++ ) {
@@ -47537,8 +46758,7 @@ int HP_pc_cleareventtimer(struct map_session_data *sd) {
}
int HP_pc_addeventtimercount(struct map_session_data *sd, const char *name, int tick) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_addeventtimercount_pre ) {
int (*preHookFunc) (struct map_session_data *sd, const char *name, int *tick);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_addeventtimercount_pre; hIndex++ ) {
@@ -47564,8 +46784,7 @@ int HP_pc_addeventtimercount(struct map_session_data *sd, const char *name, int
}
int HP_pc_calc_pvprank(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_calc_pvprank_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_calc_pvprank_pre; hIndex++ ) {
@@ -47591,8 +46810,7 @@ int HP_pc_calc_pvprank(struct map_session_data *sd) {
}
int HP_pc_calc_pvprank_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_calc_pvprank_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_calc_pvprank_timer_pre; hIndex++ ) {
@@ -47618,8 +46836,7 @@ int HP_pc_calc_pvprank_timer(int tid, unsigned int tick, int id, intptr_t data)
}
int HP_pc_ismarried(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_ismarried_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_ismarried_pre; hIndex++ ) {
@@ -47645,8 +46862,7 @@ int HP_pc_ismarried(struct map_session_data *sd) {
}
int HP_pc_marriage(struct map_session_data *sd, struct map_session_data *dstsd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_marriage_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct map_session_data *dstsd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_marriage_pre; hIndex++ ) {
@@ -47672,8 +46888,7 @@ int HP_pc_marriage(struct map_session_data *sd, struct map_session_data *dstsd)
}
int HP_pc_divorce(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_divorce_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_divorce_pre; hIndex++ ) {
@@ -47878,8 +47093,7 @@ void HP_pc_setstand(struct map_session_data *sd) {
}
int HP_pc_candrop(struct map_session_data *sd, struct item *item) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_candrop_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct item *item);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_candrop_pre; hIndex++ ) {
@@ -47905,8 +47119,7 @@ int HP_pc_candrop(struct map_session_data *sd, struct item *item) {
}
int HP_pc_jobid2mapid(unsigned short b_class) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_jobid2mapid_pre ) {
int (*preHookFunc) (unsigned short *b_class);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_jobid2mapid_pre; hIndex++ ) {
@@ -47932,8 +47145,7 @@ int HP_pc_jobid2mapid(unsigned short b_class) {
}
int HP_pc_mapid2jobid(unsigned short class_, int sex) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_mapid2jobid_pre ) {
int (*preHookFunc) (unsigned short *class_, int *sex);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_mapid2jobid_pre; hIndex++ ) {
@@ -48035,8 +47247,7 @@ void HP_pc_delinvincibletimer(struct map_session_data *sd) {
}
int HP_pc_addspiritball(struct map_session_data *sd, int interval, int max) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_addspiritball_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *interval, int *max);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_addspiritball_pre; hIndex++ ) {
@@ -48062,8 +47273,7 @@ int HP_pc_addspiritball(struct map_session_data *sd, int interval, int max) {
}
int HP_pc_delspiritball(struct map_session_data *sd, int count, int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_delspiritball_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *count, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_delspiritball_pre; hIndex++ ) {
@@ -48114,8 +47324,7 @@ void HP_pc_addfame(struct map_session_data *sd, int count) {
}
unsigned char HP_pc_famerank(int char_id, int job) {
int hIndex = 0;
- unsigned char retVal___;
- memset(&retVal___, '\0', sizeof(unsigned char));
+ unsigned char retVal___ = 0;
if( HPMHooks.count.HP_pc_famerank_pre ) {
unsigned char (*preHookFunc) (int *char_id, int *job);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_famerank_pre; hIndex++ ) {
@@ -48141,8 +47350,7 @@ unsigned char HP_pc_famerank(int char_id, int job) {
}
int HP_pc_set_hate_mob(struct map_session_data *sd, int pos, struct block_list *bl) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_set_hate_mob_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *pos, struct block_list *bl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_set_hate_mob_pre; hIndex++ ) {
@@ -48168,8 +47376,7 @@ int HP_pc_set_hate_mob(struct map_session_data *sd, int pos, struct block_list *
}
int HP_pc_readdb(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_readdb_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_readdb_pre; hIndex++ ) {
@@ -48195,8 +47402,7 @@ int HP_pc_readdb(void) {
}
int HP_pc_map_day_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_map_day_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_map_day_timer_pre; hIndex++ ) {
@@ -48222,8 +47428,7 @@ int HP_pc_map_day_timer(int tid, unsigned int tick, int id, intptr_t data) {
}
int HP_pc_map_night_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_map_night_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_map_night_timer_pre; hIndex++ ) {
@@ -48274,8 +47479,7 @@ void HP_pc_inventory_rentals(struct map_session_data *sd) {
}
int HP_pc_inventory_rental_clear(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_inventory_rental_clear_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_inventory_rental_clear_pre; hIndex++ ) {
@@ -48326,8 +47530,7 @@ void HP_pc_inventory_rental_add(struct map_session_data *sd, int seconds) {
}
int HP_pc_disguise(struct map_session_data *sd, int class_) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_disguise_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *class_);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_disguise_pre; hIndex++ ) {
@@ -48353,8 +47556,7 @@ int HP_pc_disguise(struct map_session_data *sd, int class_) {
}
bool HP_pc_isautolooting(struct map_session_data *sd, int nameid) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_pc_isautolooting_pre ) {
bool (*preHookFunc) (struct map_session_data *sd, int *nameid);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_isautolooting_pre; hIndex++ ) {
@@ -48405,8 +47607,7 @@ void HP_pc_overheat(struct map_session_data *sd, int val) {
}
int HP_pc_banding(struct map_session_data *sd, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_banding_pre ) {
int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_banding_pre; hIndex++ ) {
@@ -48457,8 +47658,7 @@ void HP_pc_itemcd_do(struct map_session_data *sd, bool load) {
}
int HP_pc_load_combo(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_load_combo_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_load_combo_pre; hIndex++ ) {
@@ -48484,8 +47684,7 @@ int HP_pc_load_combo(struct map_session_data *sd) {
}
int HP_pc_add_charm(struct map_session_data *sd, int interval, int max, int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_add_charm_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *interval, int *max, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_add_charm_pre; hIndex++ ) {
@@ -48511,8 +47710,7 @@ int HP_pc_add_charm(struct map_session_data *sd, int interval, int max, int type
}
int HP_pc_del_charm(struct map_session_data *sd, int count, int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_del_charm_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *count, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_del_charm_pre; hIndex++ ) {
@@ -48563,8 +47761,7 @@ void HP_pc_baselevelchanged(struct map_session_data *sd) {
}
int HP_pc_level_penalty_mod(int diff, unsigned char race, unsigned short mode, int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_level_penalty_mod_pre ) {
int (*preHookFunc) (int *diff, unsigned char *race, unsigned short *mode, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_level_penalty_mod_pre; hIndex++ ) {
@@ -48590,8 +47787,7 @@ int HP_pc_level_penalty_mod(int diff, unsigned char race, unsigned short mode, i
}
int HP_pc_calc_skillpoint(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_calc_skillpoint_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_calc_skillpoint_pre; hIndex++ ) {
@@ -48617,8 +47813,7 @@ int HP_pc_calc_skillpoint(struct map_session_data *sd) {
}
int HP_pc_invincible_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_invincible_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_invincible_timer_pre; hIndex++ ) {
@@ -48644,8 +47839,7 @@ int HP_pc_invincible_timer(int tid, unsigned int tick, int id, intptr_t data) {
}
int HP_pc_spiritball_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_spiritball_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_spiritball_timer_pre; hIndex++ ) {
@@ -48671,8 +47865,7 @@ int HP_pc_spiritball_timer(int tid, unsigned int tick, int id, intptr_t data) {
}
int HP_pc_check_banding(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_check_banding_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_check_banding_pre; hIndex++ ) {
@@ -48704,8 +47897,7 @@ int HP_pc_check_banding(struct block_list *bl, va_list ap) {
}
int HP_pc_inventory_rental_end(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_inventory_rental_end_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_inventory_rental_end_pre; hIndex++ ) {
@@ -48756,8 +47948,7 @@ void HP_pc_check_skilltree(struct map_session_data *sd, int skill_id) {
}
int HP_pc_bonus_autospell(struct s_autospell *spell, int max, short id, short lv, short rate, short flag, short card_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_bonus_autospell_pre ) {
int (*preHookFunc) (struct s_autospell *spell, int *max, short *id, short *lv, short *rate, short *flag, short *card_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bonus_autospell_pre; hIndex++ ) {
@@ -48783,8 +47974,7 @@ int HP_pc_bonus_autospell(struct s_autospell *spell, int max, short id, short lv
}
int HP_pc_bonus_autospell_onskill(struct s_autospell *spell, int max, short src_skill, short id, short lv, short rate, short card_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_bonus_autospell_onskill_pre ) {
int (*preHookFunc) (struct s_autospell *spell, int *max, short *src_skill, short *id, short *lv, short *rate, short *card_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bonus_autospell_onskill_pre; hIndex++ ) {
@@ -48810,8 +48000,7 @@ int HP_pc_bonus_autospell_onskill(struct s_autospell *spell, int max, short src_
}
int HP_pc_bonus_addeff(struct s_addeffect *effect, int max, enum sc_type id, short rate, short arrow_rate, unsigned char flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_bonus_addeff_pre ) {
int (*preHookFunc) (struct s_addeffect *effect, int *max, enum sc_type *id, short *rate, short *arrow_rate, unsigned char *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bonus_addeff_pre; hIndex++ ) {
@@ -48837,8 +48026,7 @@ int HP_pc_bonus_addeff(struct s_addeffect *effect, int max, enum sc_type id, sho
}
int HP_pc_bonus_addeff_onskill(struct s_addeffectonskill *effect, int max, enum sc_type id, short rate, short skill_id, unsigned char target) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_bonus_addeff_onskill_pre ) {
int (*preHookFunc) (struct s_addeffectonskill *effect, int *max, enum sc_type *id, short *rate, short *skill_id, unsigned char *target);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bonus_addeff_onskill_pre; hIndex++ ) {
@@ -48864,8 +48052,7 @@ int HP_pc_bonus_addeff_onskill(struct s_addeffectonskill *effect, int max, enum
}
int HP_pc_bonus_item_drop(struct s_add_drop *drop, const short max, short id, short group, int race, int rate) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_bonus_item_drop_pre ) {
int (*preHookFunc) (struct s_add_drop *drop, const short *max, short *id, short *group, int *race, int *rate);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_bonus_item_drop_pre; hIndex++ ) {
@@ -48916,8 +48103,7 @@ void HP_pc_calcexp(struct map_session_data *sd, unsigned int *base_exp, unsigned
}
int HP_pc_respawn_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_respawn_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_respawn_timer_pre; hIndex++ ) {
@@ -48943,8 +48129,7 @@ int HP_pc_respawn_timer(int tid, unsigned int tick, int id, intptr_t data) {
}
int HP_pc_jobchange_killclone(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_jobchange_killclone_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_jobchange_killclone_pre; hIndex++ ) {
@@ -48976,8 +48161,7 @@ int HP_pc_jobchange_killclone(struct block_list *bl, va_list ap) {
}
int HP_pc_getstat(struct map_session_data *sd, int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_getstat_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_getstat_pre; hIndex++ ) {
@@ -49003,8 +48187,7 @@ int HP_pc_getstat(struct map_session_data *sd, int type) {
}
int HP_pc_setstat(struct map_session_data *sd, int type, int val) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_setstat_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *type, int *val);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_setstat_pre; hIndex++ ) {
@@ -49030,8 +48213,7 @@ int HP_pc_setstat(struct map_session_data *sd, int type, int val) {
}
int HP_pc_eventtimer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_eventtimer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_eventtimer_pre; hIndex++ ) {
@@ -49057,8 +48239,7 @@ int HP_pc_eventtimer(int tid, unsigned int tick, int id, intptr_t data) {
}
int HP_pc_daynight_timer_sub(struct map_session_data *sd, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_daynight_timer_sub_pre ) {
int (*preHookFunc) (struct map_session_data *sd, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_daynight_timer_sub_pre; hIndex++ ) {
@@ -49090,8 +48271,7 @@ int HP_pc_daynight_timer_sub(struct map_session_data *sd, va_list ap) {
}
int HP_pc_charm_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_charm_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_charm_timer_pre; hIndex++ ) {
@@ -49117,8 +48297,7 @@ int HP_pc_charm_timer(int tid, unsigned int tick, int id, intptr_t data) {
}
bool HP_pc_readdb_levelpenalty(char *fields[], int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_pc_readdb_levelpenalty_pre ) {
bool (*preHookFunc) (char *fields[], int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_readdb_levelpenalty_pre; hIndex++ ) {
@@ -49144,8 +48323,7 @@ bool HP_pc_readdb_levelpenalty(char *fields[], int columns, int current) {
}
int HP_pc_autosave(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_autosave_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_autosave_pre; hIndex++ ) {
@@ -49171,8 +48349,7 @@ int HP_pc_autosave(int tid, unsigned int tick, int id, intptr_t data) {
}
int HP_pc_follow_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_follow_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_follow_timer_pre; hIndex++ ) {
@@ -49223,8 +48400,7 @@ void HP_pc_read_skill_tree(void) {
}
int HP_pc_isUseitem(struct map_session_data *sd, int n) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_isUseitem_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *n);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_isUseitem_pre; hIndex++ ) {
@@ -49250,8 +48426,7 @@ int HP_pc_isUseitem(struct map_session_data *sd, int n) {
}
int HP_pc_show_steal(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_show_steal_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_show_steal_pre; hIndex++ ) {
@@ -49283,8 +48458,7 @@ int HP_pc_show_steal(struct block_list *bl, va_list ap) {
}
int HP_pc_checkcombo(struct map_session_data *sd, struct item_data *data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_checkcombo_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct item_data *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_checkcombo_pre; hIndex++ ) {
@@ -49310,8 +48484,7 @@ int HP_pc_checkcombo(struct map_session_data *sd, struct item_data *data) {
}
int HP_pc_calcweapontype(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_calcweapontype_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_calcweapontype_pre; hIndex++ ) {
@@ -49337,8 +48510,7 @@ int HP_pc_calcweapontype(struct map_session_data *sd) {
}
int HP_pc_removecombo(struct map_session_data *sd, struct item_data *data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pc_removecombo_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct item_data *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_removecombo_pre; hIndex++ ) {
@@ -49365,8 +48537,7 @@ int HP_pc_removecombo(struct map_session_data *sd, struct item_data *data) {
/* pet */
int HP_pet_init(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_init_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_init_pre; hIndex++ ) {
@@ -49392,8 +48563,7 @@ int HP_pet_init(void) {
}
int HP_pet_final(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_final_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_final_pre; hIndex++ ) {
@@ -49419,8 +48589,7 @@ int HP_pet_final(void) {
}
int HP_pet_hungry_val(struct pet_data *pd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_hungry_val_pre ) {
int (*preHookFunc) (struct pet_data *pd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_hungry_val_pre; hIndex++ ) {
@@ -49471,8 +48640,7 @@ void HP_pet_set_intimate(struct pet_data *pd, int value) {
}
int HP_pet_create_egg(struct map_session_data *sd, int item_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_create_egg_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *item_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_create_egg_pre; hIndex++ ) {
@@ -49498,8 +48666,7 @@ int HP_pet_create_egg(struct map_session_data *sd, int item_id) {
}
int HP_pet_unlocktarget(struct pet_data *pd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_unlocktarget_pre ) {
int (*preHookFunc) (struct pet_data *pd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_unlocktarget_pre; hIndex++ ) {
@@ -49525,8 +48692,7 @@ int HP_pet_unlocktarget(struct pet_data *pd) {
}
int HP_pet_attackskill(struct pet_data *pd, int target_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_attackskill_pre ) {
int (*preHookFunc) (struct pet_data *pd, int *target_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_attackskill_pre; hIndex++ ) {
@@ -49552,8 +48718,7 @@ int HP_pet_attackskill(struct pet_data *pd, int target_id) {
}
int HP_pet_target_check(struct map_session_data *sd, struct block_list *bl, int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_target_check_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct block_list *bl, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_target_check_pre; hIndex++ ) {
@@ -49579,8 +48744,7 @@ int HP_pet_target_check(struct map_session_data *sd, struct block_list *bl, int
}
int HP_pet_sc_check(struct map_session_data *sd, int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_sc_check_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_sc_check_pre; hIndex++ ) {
@@ -49606,8 +48770,7 @@ int HP_pet_sc_check(struct map_session_data *sd, int type) {
}
int HP_pet_hungry(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_hungry_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_hungry_pre; hIndex++ ) {
@@ -49633,8 +48796,7 @@ int HP_pet_hungry(int tid, unsigned int tick, int id, intptr_t data) {
}
int HP_pet_search_petDB_index(int key, int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_search_petDB_index_pre ) {
int (*preHookFunc) (int *key, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_search_petDB_index_pre; hIndex++ ) {
@@ -49660,8 +48822,7 @@ int HP_pet_search_petDB_index(int key, int type) {
}
int HP_pet_hungry_timer_delete(struct pet_data *pd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_hungry_timer_delete_pre ) {
int (*preHookFunc) (struct pet_data *pd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_hungry_timer_delete_pre; hIndex++ ) {
@@ -49687,8 +48848,7 @@ int HP_pet_hungry_timer_delete(struct pet_data *pd) {
}
int HP_pet_performance(struct map_session_data *sd, struct pet_data *pd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_performance_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct pet_data *pd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_performance_pre; hIndex++ ) {
@@ -49714,8 +48874,7 @@ int HP_pet_performance(struct map_session_data *sd, struct pet_data *pd) {
}
int HP_pet_return_egg(struct map_session_data *sd, struct pet_data *pd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_return_egg_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct pet_data *pd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_return_egg_pre; hIndex++ ) {
@@ -49741,8 +48900,7 @@ int HP_pet_return_egg(struct map_session_data *sd, struct pet_data *pd) {
}
int HP_pet_data_init(struct map_session_data *sd, struct s_pet *petinfo) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_data_init_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct s_pet *petinfo);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_data_init_pre; hIndex++ ) {
@@ -49768,8 +48926,7 @@ int HP_pet_data_init(struct map_session_data *sd, struct s_pet *petinfo) {
}
int HP_pet_birth_process(struct map_session_data *sd, struct s_pet *petinfo) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_birth_process_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct s_pet *petinfo);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_birth_process_pre; hIndex++ ) {
@@ -49795,8 +48952,7 @@ int HP_pet_birth_process(struct map_session_data *sd, struct s_pet *petinfo) {
}
int HP_pet_recv_petdata(int account_id, struct s_pet *p, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_recv_petdata_pre ) {
int (*preHookFunc) (int *account_id, struct s_pet *p, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_recv_petdata_pre; hIndex++ ) {
@@ -49822,8 +48978,7 @@ int HP_pet_recv_petdata(int account_id, struct s_pet *p, int flag) {
}
int HP_pet_select_egg(struct map_session_data *sd, short egg_index) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_select_egg_pre ) {
int (*preHookFunc) (struct map_session_data *sd, short *egg_index);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_select_egg_pre; hIndex++ ) {
@@ -49849,8 +49004,7 @@ int HP_pet_select_egg(struct map_session_data *sd, short egg_index) {
}
int HP_pet_catch_process1(struct map_session_data *sd, int target_class) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_catch_process1_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *target_class);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_catch_process1_pre; hIndex++ ) {
@@ -49876,8 +49030,7 @@ int HP_pet_catch_process1(struct map_session_data *sd, int target_class) {
}
int HP_pet_catch_process2(struct map_session_data *sd, int target_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_catch_process2_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *target_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_catch_process2_pre; hIndex++ ) {
@@ -49903,8 +49056,7 @@ int HP_pet_catch_process2(struct map_session_data *sd, int target_id) {
}
int HP_pet_get_egg(int account_id, int pet_id, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_get_egg_pre ) {
int (*preHookFunc) (int *account_id, int *pet_id, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_get_egg_pre; hIndex++ ) {
@@ -49930,8 +49082,7 @@ int HP_pet_get_egg(int account_id, int pet_id, int flag) {
}
int HP_pet_unequipitem(struct map_session_data *sd, struct pet_data *pd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_unequipitem_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct pet_data *pd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_unequipitem_pre; hIndex++ ) {
@@ -49957,8 +49108,7 @@ int HP_pet_unequipitem(struct map_session_data *sd, struct pet_data *pd) {
}
int HP_pet_food(struct map_session_data *sd, struct pet_data *pd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_food_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct pet_data *pd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_food_pre; hIndex++ ) {
@@ -49984,8 +49134,7 @@ int HP_pet_food(struct map_session_data *sd, struct pet_data *pd) {
}
int HP_pet_ai_sub_hard_lootsearch(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_ai_sub_hard_lootsearch_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_ai_sub_hard_lootsearch_pre; hIndex++ ) {
@@ -50017,8 +49166,7 @@ int HP_pet_ai_sub_hard_lootsearch(struct block_list *bl, va_list ap) {
}
int HP_pet_menu(struct map_session_data *sd, int menunum) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_menu_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *menunum);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_menu_pre; hIndex++ ) {
@@ -50044,8 +49192,7 @@ int HP_pet_menu(struct map_session_data *sd, int menunum) {
}
int HP_pet_change_name(struct map_session_data *sd, char *name) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_change_name_pre ) {
int (*preHookFunc) (struct map_session_data *sd, char *name);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_change_name_pre; hIndex++ ) {
@@ -50071,8 +49218,7 @@ int HP_pet_change_name(struct map_session_data *sd, char *name) {
}
int HP_pet_change_name_ack(struct map_session_data *sd, char *name, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_change_name_ack_pre ) {
int (*preHookFunc) (struct map_session_data *sd, char *name, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_change_name_ack_pre; hIndex++ ) {
@@ -50098,8 +49244,7 @@ int HP_pet_change_name_ack(struct map_session_data *sd, char *name, int flag) {
}
int HP_pet_equipitem(struct map_session_data *sd, int index) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_equipitem_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *index);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_equipitem_pre; hIndex++ ) {
@@ -50125,8 +49270,7 @@ int HP_pet_equipitem(struct map_session_data *sd, int index) {
}
int HP_pet_randomwalk(struct pet_data *pd, unsigned int tick) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_randomwalk_pre ) {
int (*preHookFunc) (struct pet_data *pd, unsigned int *tick);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_randomwalk_pre; hIndex++ ) {
@@ -50152,8 +49296,7 @@ int HP_pet_randomwalk(struct pet_data *pd, unsigned int tick) {
}
int HP_pet_ai_sub_hard(struct pet_data *pd, struct map_session_data *sd, unsigned int tick) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_ai_sub_hard_pre ) {
int (*preHookFunc) (struct pet_data *pd, struct map_session_data *sd, unsigned int *tick);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_ai_sub_hard_pre; hIndex++ ) {
@@ -50179,8 +49322,7 @@ int HP_pet_ai_sub_hard(struct pet_data *pd, struct map_session_data *sd, unsigne
}
int HP_pet_ai_sub_foreachclient(struct map_session_data *sd, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_ai_sub_foreachclient_pre ) {
int (*preHookFunc) (struct map_session_data *sd, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_ai_sub_foreachclient_pre; hIndex++ ) {
@@ -50212,8 +49354,7 @@ int HP_pet_ai_sub_foreachclient(struct map_session_data *sd, va_list ap) {
}
int HP_pet_ai_hard(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_ai_hard_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_ai_hard_pre; hIndex++ ) {
@@ -50239,8 +49380,7 @@ int HP_pet_ai_hard(int tid, unsigned int tick, int id, intptr_t data) {
}
int HP_pet_delay_item_drop(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_delay_item_drop_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_delay_item_drop_pre; hIndex++ ) {
@@ -50266,8 +49406,7 @@ int HP_pet_delay_item_drop(int tid, unsigned int tick, int id, intptr_t data) {
}
int HP_pet_lootitem_drop(struct pet_data *pd, struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_lootitem_drop_pre ) {
int (*preHookFunc) (struct pet_data *pd, struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_lootitem_drop_pre; hIndex++ ) {
@@ -50293,8 +49432,7 @@ int HP_pet_lootitem_drop(struct pet_data *pd, struct map_session_data *sd) {
}
int HP_pet_skill_bonus_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_skill_bonus_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_skill_bonus_timer_pre; hIndex++ ) {
@@ -50320,8 +49458,7 @@ int HP_pet_skill_bonus_timer(int tid, unsigned int tick, int id, intptr_t data)
}
int HP_pet_recovery_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_recovery_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_recovery_timer_pre; hIndex++ ) {
@@ -50347,8 +49484,7 @@ int HP_pet_recovery_timer(int tid, unsigned int tick, int id, intptr_t data) {
}
int HP_pet_heal_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_heal_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_heal_timer_pre; hIndex++ ) {
@@ -50374,8 +49510,7 @@ int HP_pet_heal_timer(int tid, unsigned int tick, int id, intptr_t data) {
}
int HP_pet_skill_support_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_skill_support_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_skill_support_timer_pre; hIndex++ ) {
@@ -50401,8 +49536,7 @@ int HP_pet_skill_support_timer(int tid, unsigned int tick, int id, intptr_t data
}
int HP_pet_read_db(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_pet_read_db_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pet_read_db_pre; hIndex++ ) {
@@ -50479,8 +49613,7 @@ void HP_quest_reload(void) {
}
int HP_quest_search_db(int quest_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_quest_search_db_pre ) {
int (*preHookFunc) (int *quest_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_quest_search_db_pre; hIndex++ ) {
@@ -50506,8 +49639,7 @@ int HP_quest_search_db(int quest_id) {
}
int HP_quest_pc_login(TBL_PC *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_quest_pc_login_pre ) {
int (*preHookFunc) (TBL_PC *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_quest_pc_login_pre; hIndex++ ) {
@@ -50533,8 +49665,7 @@ int HP_quest_pc_login(TBL_PC *sd) {
}
int HP_quest_add(TBL_PC *sd, int quest_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_quest_add_pre ) {
int (*preHookFunc) (TBL_PC *sd, int *quest_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_quest_add_pre; hIndex++ ) {
@@ -50560,8 +49691,7 @@ int HP_quest_add(TBL_PC *sd, int quest_id) {
}
int HP_quest_change(TBL_PC *sd, int qid1, int qid2) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_quest_change_pre ) {
int (*preHookFunc) (TBL_PC *sd, int *qid1, int *qid2);
for(hIndex = 0; hIndex < HPMHooks.count.HP_quest_change_pre; hIndex++ ) {
@@ -50587,8 +49717,7 @@ int HP_quest_change(TBL_PC *sd, int qid1, int qid2) {
}
int HP_quest_delete(TBL_PC *sd, int quest_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_quest_delete_pre ) {
int (*preHookFunc) (TBL_PC *sd, int *quest_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_quest_delete_pre; hIndex++ ) {
@@ -50614,8 +49743,7 @@ int HP_quest_delete(TBL_PC *sd, int quest_id) {
}
int HP_quest_update_objective_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_quest_update_objective_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_quest_update_objective_sub_pre; hIndex++ ) {
@@ -50672,8 +49800,7 @@ void HP_quest_update_objective(TBL_PC *sd, int mob_id) {
}
int HP_quest_update_status(TBL_PC *sd, int quest_id, quest_state qs) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_quest_update_status_pre ) {
int (*preHookFunc) (TBL_PC *sd, int *quest_id, quest_state *qs);
for(hIndex = 0; hIndex < HPMHooks.count.HP_quest_update_status_pre; hIndex++ ) {
@@ -50699,8 +49826,7 @@ int HP_quest_update_status(TBL_PC *sd, int quest_id, quest_state qs) {
}
int HP_quest_check(TBL_PC *sd, int quest_id, quest_check_type type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_quest_check_pre ) {
int (*preHookFunc) (TBL_PC *sd, int *quest_id, quest_check_type *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_quest_check_pre; hIndex++ ) {
@@ -50726,8 +49852,7 @@ int HP_quest_check(TBL_PC *sd, int quest_id, quest_check_type type) {
}
int HP_quest_read_db(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_quest_read_db_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_quest_read_db_pre; hIndex++ ) {
@@ -50804,8 +49929,7 @@ void HP_script_final(void) {
}
int HP_script_reload(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_reload_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_reload_pre; hIndex++ ) {
@@ -50984,8 +50108,7 @@ void HP_script_warning(const char *src, const char *file, int start_line, const
}
bool HP_script_addScript(char *name, char *args, bool ( *func ) (struct script_state *st)) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_script_addScript_pre ) {
bool (*preHookFunc) (char *name, char *args, bool ( *func ) (struct script_state *st));
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_addScript_pre; hIndex++ ) {
@@ -51011,8 +50134,7 @@ bool HP_script_addScript(char *name, char *args, bool ( *func ) (struct script_s
}
int HP_script_conv_num(struct script_state *st, struct script_data *data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_conv_num_pre ) {
int (*preHookFunc) (struct script_state *st, struct script_data *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_conv_num_pre; hIndex++ ) {
@@ -51344,8 +50466,7 @@ void HP_script_set_constant_force(const char *name, int value, bool isparameter)
}
bool HP_script_get_constant(const char *name, int *value) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_script_get_constant_pre ) {
bool (*preHookFunc) (const char *name, int *value);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_get_constant_pre; hIndex++ ) {
@@ -51446,8 +50567,7 @@ void HP_script_run_main(struct script_state *st) {
}
int HP_script_run_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_run_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_run_timer_pre; hIndex++ ) {
@@ -51473,8 +50593,7 @@ int HP_script_run_timer(int tid, unsigned int tick, int id, intptr_t data) {
}
int HP_script_set_var(struct map_session_data *sd, char *name, void *val) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_set_var_pre ) {
int (*preHookFunc) (struct map_session_data *sd, char *name, void *val);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_set_var_pre; hIndex++ ) {
@@ -51701,8 +50820,7 @@ void HP_script_setarray_pc(struct map_session_data *sd, const char *varname, uin
}
int HP_script_config_read(char *cfgName) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_config_read_pre ) {
int (*preHookFunc) (char *cfgName);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_config_read_pre; hIndex++ ) {
@@ -51728,8 +50846,7 @@ int HP_script_config_read(char *cfgName) {
}
int HP_script_add_str(const char *p) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_add_str_pre ) {
int (*preHookFunc) (const char *p);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_add_str_pre; hIndex++ ) {
@@ -51781,8 +50898,7 @@ const char* HP_script_get_str(int id) {
}
int HP_script_search_str(const char *p) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_search_str_pre ) {
int (*preHookFunc) (const char *p);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_search_str_pre; hIndex++ ) {
@@ -51884,8 +51000,7 @@ struct hQueue* HP_script_queue(int idx) {
}
bool HP_script_queue_add(int idx, int var) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_script_queue_add_pre ) {
bool (*preHookFunc) (int *idx, int *var);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_queue_add_pre; hIndex++ ) {
@@ -51911,8 +51026,7 @@ bool HP_script_queue_add(int idx, int var) {
}
bool HP_script_queue_del(int idx) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_script_queue_del_pre ) {
bool (*preHookFunc) (int *idx);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_queue_del_pre; hIndex++ ) {
@@ -51938,8 +51052,7 @@ bool HP_script_queue_del(int idx) {
}
bool HP_script_queue_remove(int idx, int var) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_script_queue_remove_pre ) {
bool (*preHookFunc) (int *idx, int *var);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_queue_remove_pre; hIndex++ ) {
@@ -51965,8 +51078,7 @@ bool HP_script_queue_remove(int idx, int var) {
}
int HP_script_queue_create(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_queue_create_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_queue_create_pre; hIndex++ ) {
@@ -52121,8 +51233,7 @@ const char* HP_script_parse_syntax(const char *p) {
}
c_op HP_script_get_com(unsigned char *scriptbuf, int *pos) {
int hIndex = 0;
- c_op retVal___;
- memset(&retVal___, '\0', sizeof(c_op));
+ c_op retVal___ = C_NOP;
if( HPMHooks.count.HP_script_get_com_pre ) {
c_op (*preHookFunc) (unsigned char *scriptbuf, int *pos);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_get_com_pre; hIndex++ ) {
@@ -52148,8 +51259,7 @@ c_op HP_script_get_com(unsigned char *scriptbuf, int *pos) {
}
int HP_script_get_num(unsigned char *scriptbuf, int *pos) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_get_num_pre ) {
int (*preHookFunc) (unsigned char *scriptbuf, int *pos);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_get_num_pre; hIndex++ ) {
@@ -52351,8 +51461,7 @@ void HP_script_check_event(struct script_state *st, const char *evt) {
}
unsigned int HP_script_calc_hash(const char *p) {
int hIndex = 0;
- unsigned int retVal___;
- memset(&retVal___, '\0', sizeof(unsigned int));
+ unsigned int retVal___ = 0;
if( HPMHooks.count.HP_script_calc_hash_pre ) {
unsigned int (*preHookFunc) (const char *p);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_calc_hash_pre; hIndex++ ) {
@@ -52529,8 +51638,7 @@ const char* HP_script_skip_word(const char *p) {
}
int HP_script_add_word(const char *p) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_add_word_pre ) {
int (*preHookFunc) (const char *p);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_add_word_pre; hIndex++ ) {
@@ -52787,8 +51895,7 @@ void HP_script_errorwarning_sub(StringBuf *buf, const char *src, const char *fil
}
int HP_script_set_reg(struct script_state *st, TBL_PC *sd, int num, const char *name, const void *value, struct DBMap **ref) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_set_reg_pre ) {
int (*preHookFunc) (struct script_state *st, TBL_PC *sd, int *num, const char *name, const void *value, struct DBMap **ref);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_set_reg_pre; hIndex++ ) {
@@ -52865,8 +51972,7 @@ struct script_data* HP_script_push_retinfo(struct script_stack *stack, struct sc
}
int HP_script_pop_val(struct script_state *st) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_pop_val_pre ) {
int (*preHookFunc) (struct script_state *st);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_pop_val_pre; hIndex++ ) {
@@ -53067,8 +52173,7 @@ void HP_script_detach_state(struct script_state *st, bool dequeue_event) {
}
int HP_script_db_free_code_sub(DBKey key, DBData *data, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_db_free_code_sub_pre ) {
int (*preHookFunc) (DBKey *key, DBData *data, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_db_free_code_sub_pre; hIndex++ ) {
@@ -53125,8 +52230,7 @@ void HP_script_add_autobonus(const char *autobonus) {
}
int HP_script_menu_countoptions(const char *str, int max_count, int *total) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_menu_countoptions_pre ) {
int (*preHookFunc) (const char *str, int *max_count, int *total);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_menu_countoptions_pre; hIndex++ ) {
@@ -53152,8 +52256,7 @@ int HP_script_menu_countoptions(const char *str, int max_count, int *total) {
}
int HP_script_buildin_areawarp_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_buildin_areawarp_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_areawarp_sub_pre; hIndex++ ) {
@@ -53185,8 +52288,7 @@ int HP_script_buildin_areawarp_sub(struct block_list *bl, va_list ap) {
}
int HP_script_buildin_areapercentheal_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_buildin_areapercentheal_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_areapercentheal_sub_pre; hIndex++ ) {
@@ -53218,8 +52320,7 @@ int HP_script_buildin_areapercentheal_sub(struct block_list *bl, va_list ap) {
}
int32 HP_script_getarraysize(struct script_state *st, int32 id, int32 idx, int isstring, struct DBMap **ref) {
int hIndex = 0;
- int32 retVal___;
- memset(&retVal___, '\0', sizeof(int32));
+ int32 retVal___ = 0;
if( HPMHooks.count.HP_script_getarraysize_pre ) {
int32 (*preHookFunc) (struct script_state *st, int32 *id, int32 *idx, int *isstring, struct DBMap **ref);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_getarraysize_pre; hIndex++ ) {
@@ -53270,8 +52371,7 @@ void HP_script_buildin_delitem_delete(struct map_session_data *sd, int idx, int
}
bool HP_script_buildin_delitem_search(struct map_session_data *sd, struct item *it, bool exact_match) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_script_buildin_delitem_search_pre ) {
bool (*preHookFunc) (struct map_session_data *sd, struct item *it, bool *exact_match);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_delitem_search_pre; hIndex++ ) {
@@ -53297,8 +52397,7 @@ bool HP_script_buildin_delitem_search(struct map_session_data *sd, struct item *
}
int HP_script_buildin_killmonster_sub_strip(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_buildin_killmonster_sub_strip_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_killmonster_sub_strip_pre; hIndex++ ) {
@@ -53330,8 +52429,7 @@ int HP_script_buildin_killmonster_sub_strip(struct block_list *bl, va_list ap) {
}
int HP_script_buildin_killmonster_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_buildin_killmonster_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_killmonster_sub_pre; hIndex++ ) {
@@ -53363,8 +52461,7 @@ int HP_script_buildin_killmonster_sub(struct block_list *bl, va_list ap) {
}
int HP_script_buildin_killmonsterall_sub_strip(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_buildin_killmonsterall_sub_strip_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_killmonsterall_sub_strip_pre; hIndex++ ) {
@@ -53396,8 +52493,7 @@ int HP_script_buildin_killmonsterall_sub_strip(struct block_list *bl, va_list ap
}
int HP_script_buildin_killmonsterall_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_buildin_killmonsterall_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_killmonsterall_sub_pre; hIndex++ ) {
@@ -53429,8 +52525,7 @@ int HP_script_buildin_killmonsterall_sub(struct block_list *bl, va_list ap) {
}
int HP_script_buildin_announce_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_buildin_announce_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_announce_sub_pre; hIndex++ ) {
@@ -53462,8 +52557,7 @@ int HP_script_buildin_announce_sub(struct block_list *bl, va_list ap) {
}
int HP_script_buildin_getareausers_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_buildin_getareausers_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_getareausers_sub_pre; hIndex++ ) {
@@ -53495,8 +52589,7 @@ int HP_script_buildin_getareausers_sub(struct block_list *bl, va_list ap) {
}
int HP_script_buildin_getareadropitem_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_buildin_getareadropitem_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_getareadropitem_sub_pre; hIndex++ ) {
@@ -53528,8 +52621,7 @@ int HP_script_buildin_getareadropitem_sub(struct block_list *bl, va_list ap) {
}
int HP_script_mapflag_pvp_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_mapflag_pvp_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_mapflag_pvp_sub_pre; hIndex++ ) {
@@ -53561,8 +52653,7 @@ int HP_script_mapflag_pvp_sub(struct block_list *bl, va_list ap) {
}
int HP_script_buildin_pvpoff_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_buildin_pvpoff_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_pvpoff_sub_pre; hIndex++ ) {
@@ -53594,8 +52685,7 @@ int HP_script_buildin_pvpoff_sub(struct block_list *bl, va_list ap) {
}
int HP_script_buildin_maprespawnguildid_sub_pc(struct map_session_data *sd, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_buildin_maprespawnguildid_sub_pc_pre ) {
int (*preHookFunc) (struct map_session_data *sd, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_maprespawnguildid_sub_pc_pre; hIndex++ ) {
@@ -53627,8 +52717,7 @@ int HP_script_buildin_maprespawnguildid_sub_pc(struct map_session_data *sd, va_l
}
int HP_script_buildin_maprespawnguildid_sub_mob(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_buildin_maprespawnguildid_sub_mob_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_maprespawnguildid_sub_mob_pre; hIndex++ ) {
@@ -53660,8 +52749,7 @@ int HP_script_buildin_maprespawnguildid_sub_mob(struct block_list *bl, va_list a
}
int HP_script_buildin_mobcount_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_buildin_mobcount_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_mobcount_sub_pre; hIndex++ ) {
@@ -53693,8 +52781,7 @@ int HP_script_buildin_mobcount_sub(struct block_list *bl, va_list ap) {
}
int HP_script_playBGM_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_playBGM_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_playBGM_sub_pre; hIndex++ ) {
@@ -53726,8 +52813,7 @@ int HP_script_playBGM_sub(struct block_list *bl, va_list ap) {
}
int HP_script_playBGM_foreachpc_sub(struct map_session_data *sd, va_list args) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_playBGM_foreachpc_sub_pre ) {
int (*preHookFunc) (struct map_session_data *sd, va_list args);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_playBGM_foreachpc_sub_pre; hIndex++ ) {
@@ -53759,8 +52845,7 @@ int HP_script_playBGM_foreachpc_sub(struct map_session_data *sd, va_list args) {
}
int HP_script_soundeffect_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_soundeffect_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_soundeffect_sub_pre; hIndex++ ) {
@@ -53792,8 +52877,7 @@ int HP_script_soundeffect_sub(struct block_list *bl, va_list ap) {
}
int HP_script_buildin_query_sql_sub(struct script_state *st, Sql *handle) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_buildin_query_sql_sub_pre ) {
int (*preHookFunc) (struct script_state *st, Sql *handle);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_query_sql_sub_pre; hIndex++ ) {
@@ -53819,8 +52903,7 @@ int HP_script_buildin_query_sql_sub(struct script_state *st, Sql *handle) {
}
int HP_script_axtoi(const char *hexStg) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_axtoi_pre ) {
int (*preHookFunc) (const char *hexStg);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_axtoi_pre; hIndex++ ) {
@@ -53846,8 +52929,7 @@ int HP_script_axtoi(const char *hexStg) {
}
int HP_script_buildin_instance_warpall_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_buildin_instance_warpall_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_instance_warpall_sub_pre; hIndex++ ) {
@@ -53879,8 +52961,7 @@ int HP_script_buildin_instance_warpall_sub(struct block_list *bl, va_list ap) {
}
int HP_script_buildin_mobuseskill_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_buildin_mobuseskill_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_buildin_mobuseskill_sub_pre; hIndex++ ) {
@@ -53912,8 +52993,7 @@ int HP_script_buildin_mobuseskill_sub(struct block_list *bl, va_list ap) {
}
int HP_script_cleanfloor_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_cleanfloor_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_cleanfloor_sub_pre; hIndex++ ) {
@@ -53945,8 +53025,7 @@ int HP_script_cleanfloor_sub(struct block_list *bl, va_list ap) {
}
int HP_script_run_func(struct script_state *st) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_script_run_func_pre ) {
int (*preHookFunc) (struct script_state *st);
for(hIndex = 0; hIndex < HPMHooks.count.HP_script_run_func_pre; hIndex++ ) {
@@ -53973,8 +53052,7 @@ int HP_script_run_func(struct script_state *st) {
/* searchstore */
bool HP_searchstore_open(struct map_session_data *sd, unsigned int uses, unsigned short effect) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_searchstore_open_pre ) {
bool (*preHookFunc) (struct map_session_data *sd, unsigned int *uses, unsigned short *effect);
for(hIndex = 0; hIndex < HPMHooks.count.HP_searchstore_open_pre; hIndex++ ) {
@@ -54025,8 +53103,7 @@ void HP_searchstore_query(struct map_session_data *sd, unsigned char type, unsig
}
bool HP_searchstore_querynext(struct map_session_data *sd) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_searchstore_querynext_pre ) {
bool (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_searchstore_querynext_pre; hIndex++ ) {
@@ -54152,8 +53229,7 @@ void HP_searchstore_click(struct map_session_data *sd, int account_id, int store
}
bool HP_searchstore_queryremote(struct map_session_data *sd, int account_id) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_searchstore_queryremote_pre ) {
bool (*preHookFunc) (struct map_session_data *sd, int *account_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_searchstore_queryremote_pre; hIndex++ ) {
@@ -54204,8 +53280,7 @@ void HP_searchstore_clearremote(struct map_session_data *sd) {
}
bool HP_searchstore_result(struct map_session_data *sd, unsigned int store_id, int account_id, const char *store_name, unsigned short nameid, unsigned short amount, unsigned int price, const short *card, unsigned char refine) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_searchstore_result_pre ) {
bool (*preHookFunc) (struct map_session_data *sd, unsigned int *store_id, int *account_id, const char *store_name, unsigned short *nameid, unsigned short *amount, unsigned int *price, const short *card, unsigned char *refine);
for(hIndex = 0; hIndex < HPMHooks.count.HP_searchstore_result_pre; hIndex++ ) {
@@ -54232,8 +53307,7 @@ bool HP_searchstore_result(struct map_session_data *sd, unsigned int store_id, i
/* skill */
int HP_skill_init(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_init_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_init_pre; hIndex++ ) {
@@ -54259,8 +53333,7 @@ int HP_skill_init(void) {
}
int HP_skill_final(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_final_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_final_pre; hIndex++ ) {
@@ -54336,8 +53409,7 @@ void HP_skill_read_db(void) {
}
int HP_skill_get_index(uint16 skill_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_index_pre ) {
int (*preHookFunc) (uint16 *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_index_pre; hIndex++ ) {
@@ -54363,8 +53435,7 @@ int HP_skill_get_index(uint16 skill_id) {
}
int HP_skill_get_type(uint16 skill_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_type_pre ) {
int (*preHookFunc) (uint16 *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_type_pre; hIndex++ ) {
@@ -54390,8 +53461,7 @@ int HP_skill_get_type(uint16 skill_id) {
}
int HP_skill_get_hit(uint16 skill_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_hit_pre ) {
int (*preHookFunc) (uint16 *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_hit_pre; hIndex++ ) {
@@ -54417,8 +53487,7 @@ int HP_skill_get_hit(uint16 skill_id) {
}
int HP_skill_get_inf(uint16 skill_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_inf_pre ) {
int (*preHookFunc) (uint16 *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_inf_pre; hIndex++ ) {
@@ -54444,8 +53513,7 @@ int HP_skill_get_inf(uint16 skill_id) {
}
int HP_skill_get_ele(uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_ele_pre ) {
int (*preHookFunc) (uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_ele_pre; hIndex++ ) {
@@ -54471,8 +53539,7 @@ int HP_skill_get_ele(uint16 skill_id, uint16 skill_lv) {
}
int HP_skill_get_nk(uint16 skill_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_nk_pre ) {
int (*preHookFunc) (uint16 *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_nk_pre; hIndex++ ) {
@@ -54498,8 +53565,7 @@ int HP_skill_get_nk(uint16 skill_id) {
}
int HP_skill_get_max(uint16 skill_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_max_pre ) {
int (*preHookFunc) (uint16 *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_max_pre; hIndex++ ) {
@@ -54525,8 +53591,7 @@ int HP_skill_get_max(uint16 skill_id) {
}
int HP_skill_get_range(uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_range_pre ) {
int (*preHookFunc) (uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_range_pre; hIndex++ ) {
@@ -54552,8 +53617,7 @@ int HP_skill_get_range(uint16 skill_id, uint16 skill_lv) {
}
int HP_skill_get_range2(struct block_list *bl, uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_range2_pre ) {
int (*preHookFunc) (struct block_list *bl, uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_range2_pre; hIndex++ ) {
@@ -54579,8 +53643,7 @@ int HP_skill_get_range2(struct block_list *bl, uint16 skill_id, uint16 skill_lv)
}
int HP_skill_get_splash(uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_splash_pre ) {
int (*preHookFunc) (uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_splash_pre; hIndex++ ) {
@@ -54606,8 +53669,7 @@ int HP_skill_get_splash(uint16 skill_id, uint16 skill_lv) {
}
int HP_skill_get_hp(uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_hp_pre ) {
int (*preHookFunc) (uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_hp_pre; hIndex++ ) {
@@ -54633,8 +53695,7 @@ int HP_skill_get_hp(uint16 skill_id, uint16 skill_lv) {
}
int HP_skill_get_mhp(uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_mhp_pre ) {
int (*preHookFunc) (uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_mhp_pre; hIndex++ ) {
@@ -54660,8 +53721,7 @@ int HP_skill_get_mhp(uint16 skill_id, uint16 skill_lv) {
}
int HP_skill_get_sp(uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_sp_pre ) {
int (*preHookFunc) (uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_sp_pre; hIndex++ ) {
@@ -54687,8 +53747,7 @@ int HP_skill_get_sp(uint16 skill_id, uint16 skill_lv) {
}
int HP_skill_get_state(uint16 skill_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_state_pre ) {
int (*preHookFunc) (uint16 *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_state_pre; hIndex++ ) {
@@ -54714,8 +53773,7 @@ int HP_skill_get_state(uint16 skill_id) {
}
int HP_skill_get_spiritball(uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_spiritball_pre ) {
int (*preHookFunc) (uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_spiritball_pre; hIndex++ ) {
@@ -54741,8 +53799,7 @@ int HP_skill_get_spiritball(uint16 skill_id, uint16 skill_lv) {
}
int HP_skill_get_zeny(uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_zeny_pre ) {
int (*preHookFunc) (uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_zeny_pre; hIndex++ ) {
@@ -54768,8 +53825,7 @@ int HP_skill_get_zeny(uint16 skill_id, uint16 skill_lv) {
}
int HP_skill_get_num(uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_num_pre ) {
int (*preHookFunc) (uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_num_pre; hIndex++ ) {
@@ -54795,8 +53851,7 @@ int HP_skill_get_num(uint16 skill_id, uint16 skill_lv) {
}
int HP_skill_get_cast(uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_cast_pre ) {
int (*preHookFunc) (uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_cast_pre; hIndex++ ) {
@@ -54822,8 +53877,7 @@ int HP_skill_get_cast(uint16 skill_id, uint16 skill_lv) {
}
int HP_skill_get_delay(uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_delay_pre ) {
int (*preHookFunc) (uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_delay_pre; hIndex++ ) {
@@ -54849,8 +53903,7 @@ int HP_skill_get_delay(uint16 skill_id, uint16 skill_lv) {
}
int HP_skill_get_walkdelay(uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_walkdelay_pre ) {
int (*preHookFunc) (uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_walkdelay_pre; hIndex++ ) {
@@ -54876,8 +53929,7 @@ int HP_skill_get_walkdelay(uint16 skill_id, uint16 skill_lv) {
}
int HP_skill_get_time(uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_time_pre ) {
int (*preHookFunc) (uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_time_pre; hIndex++ ) {
@@ -54903,8 +53955,7 @@ int HP_skill_get_time(uint16 skill_id, uint16 skill_lv) {
}
int HP_skill_get_time2(uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_time2_pre ) {
int (*preHookFunc) (uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_time2_pre; hIndex++ ) {
@@ -54930,8 +53981,7 @@ int HP_skill_get_time2(uint16 skill_id, uint16 skill_lv) {
}
int HP_skill_get_castnodex(uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_castnodex_pre ) {
int (*preHookFunc) (uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_castnodex_pre; hIndex++ ) {
@@ -54957,8 +54007,7 @@ int HP_skill_get_castnodex(uint16 skill_id, uint16 skill_lv) {
}
int HP_skill_get_delaynodex(uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_delaynodex_pre ) {
int (*preHookFunc) (uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_delaynodex_pre; hIndex++ ) {
@@ -54984,8 +54033,7 @@ int HP_skill_get_delaynodex(uint16 skill_id, uint16 skill_lv) {
}
int HP_skill_get_castdef(uint16 skill_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_castdef_pre ) {
int (*preHookFunc) (uint16 *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_castdef_pre; hIndex++ ) {
@@ -55011,8 +54059,7 @@ int HP_skill_get_castdef(uint16 skill_id) {
}
int HP_skill_get_weapontype(uint16 skill_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_weapontype_pre ) {
int (*preHookFunc) (uint16 *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_weapontype_pre; hIndex++ ) {
@@ -55038,8 +54085,7 @@ int HP_skill_get_weapontype(uint16 skill_id) {
}
int HP_skill_get_ammotype(uint16 skill_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_ammotype_pre ) {
int (*preHookFunc) (uint16 *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_ammotype_pre; hIndex++ ) {
@@ -55065,8 +54111,7 @@ int HP_skill_get_ammotype(uint16 skill_id) {
}
int HP_skill_get_ammo_qty(uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_ammo_qty_pre ) {
int (*preHookFunc) (uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_ammo_qty_pre; hIndex++ ) {
@@ -55092,8 +54137,7 @@ int HP_skill_get_ammo_qty(uint16 skill_id, uint16 skill_lv) {
}
int HP_skill_get_unit_id(uint16 skill_id, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_unit_id_pre ) {
int (*preHookFunc) (uint16 *skill_id, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_unit_id_pre; hIndex++ ) {
@@ -55119,8 +54163,7 @@ int HP_skill_get_unit_id(uint16 skill_id, int flag) {
}
int HP_skill_get_inf2(uint16 skill_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_inf2_pre ) {
int (*preHookFunc) (uint16 *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_inf2_pre; hIndex++ ) {
@@ -55146,8 +54189,7 @@ int HP_skill_get_inf2(uint16 skill_id) {
}
int HP_skill_get_castcancel(uint16 skill_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_castcancel_pre ) {
int (*preHookFunc) (uint16 *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_castcancel_pre; hIndex++ ) {
@@ -55173,8 +54215,7 @@ int HP_skill_get_castcancel(uint16 skill_id) {
}
int HP_skill_get_maxcount(uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_maxcount_pre ) {
int (*preHookFunc) (uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_maxcount_pre; hIndex++ ) {
@@ -55200,8 +54241,7 @@ int HP_skill_get_maxcount(uint16 skill_id, uint16 skill_lv) {
}
int HP_skill_get_blewcount(uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_blewcount_pre ) {
int (*preHookFunc) (uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_blewcount_pre; hIndex++ ) {
@@ -55227,8 +54267,7 @@ int HP_skill_get_blewcount(uint16 skill_id, uint16 skill_lv) {
}
int HP_skill_get_unit_flag(uint16 skill_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_unit_flag_pre ) {
int (*preHookFunc) (uint16 *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_unit_flag_pre; hIndex++ ) {
@@ -55254,8 +54293,7 @@ int HP_skill_get_unit_flag(uint16 skill_id) {
}
int HP_skill_get_unit_target(uint16 skill_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_unit_target_pre ) {
int (*preHookFunc) (uint16 *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_unit_target_pre; hIndex++ ) {
@@ -55281,8 +54319,7 @@ int HP_skill_get_unit_target(uint16 skill_id) {
}
int HP_skill_get_unit_interval(uint16 skill_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_unit_interval_pre ) {
int (*preHookFunc) (uint16 *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_unit_interval_pre; hIndex++ ) {
@@ -55308,8 +54345,7 @@ int HP_skill_get_unit_interval(uint16 skill_id) {
}
int HP_skill_get_unit_bl_target(uint16 skill_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_unit_bl_target_pre ) {
int (*preHookFunc) (uint16 *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_unit_bl_target_pre; hIndex++ ) {
@@ -55335,8 +54371,7 @@ int HP_skill_get_unit_bl_target(uint16 skill_id) {
}
int HP_skill_get_unit_layout_type(uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_unit_layout_type_pre ) {
int (*preHookFunc) (uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_unit_layout_type_pre; hIndex++ ) {
@@ -55362,8 +54397,7 @@ int HP_skill_get_unit_layout_type(uint16 skill_id, uint16 skill_lv) {
}
int HP_skill_get_unit_range(uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_unit_range_pre ) {
int (*preHookFunc) (uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_unit_range_pre; hIndex++ ) {
@@ -55389,8 +54423,7 @@ int HP_skill_get_unit_range(uint16 skill_id, uint16 skill_lv) {
}
int HP_skill_get_cooldown(uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_cooldown_pre ) {
int (*preHookFunc) (uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_cooldown_pre; hIndex++ ) {
@@ -55416,8 +54449,7 @@ int HP_skill_get_cooldown(uint16 skill_id, uint16 skill_lv) {
}
int HP_skill_tree_get_max(uint16 skill_id, int b_class) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_tree_get_max_pre ) {
int (*preHookFunc) (uint16 *skill_id, int *b_class);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_tree_get_max_pre; hIndex++ ) {
@@ -55520,8 +54552,7 @@ void HP_skill_chk(uint16 *skill_id) {
}
int HP_skill_get_casttype(uint16 skill_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_casttype_pre ) {
int (*preHookFunc) (uint16 *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_casttype_pre; hIndex++ ) {
@@ -55547,8 +54578,7 @@ int HP_skill_get_casttype(uint16 skill_id) {
}
int HP_skill_get_casttype2(uint16 index) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_casttype2_pre ) {
int (*preHookFunc) (uint16 *index);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_casttype2_pre; hIndex++ ) {
@@ -55574,8 +54604,7 @@ int HP_skill_get_casttype2(uint16 index) {
}
int HP_skill_name2id(const char *name) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_name2id_pre ) {
int (*preHookFunc) (const char *name);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_name2id_pre; hIndex++ ) {
@@ -55601,8 +54630,7 @@ int HP_skill_name2id(const char *name) {
}
int HP_skill_isammotype(struct map_session_data *sd, int skill) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_isammotype_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *skill);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_isammotype_pre; hIndex++ ) {
@@ -55628,8 +54656,7 @@ int HP_skill_isammotype(struct map_session_data *sd, int skill) {
}
int HP_skill_castend_id(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_castend_id_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_castend_id_pre; hIndex++ ) {
@@ -55655,8 +54682,7 @@ int HP_skill_castend_id(int tid, unsigned int tick, int id, intptr_t data) {
}
int HP_skill_castend_pos(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_castend_pos_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_castend_pos_pre; hIndex++ ) {
@@ -55682,8 +54708,7 @@ int HP_skill_castend_pos(int tid, unsigned int tick, int id, intptr_t data) {
}
int HP_skill_castend_map(struct map_session_data *sd, uint16 skill_id, const char *mapname) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_castend_map_pre ) {
int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id, const char *mapname);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_castend_map_pre; hIndex++ ) {
@@ -55709,8 +54734,7 @@ int HP_skill_castend_map(struct map_session_data *sd, uint16 skill_id, const cha
}
int HP_skill_cleartimerskill(struct block_list *src) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_cleartimerskill_pre ) {
int (*preHookFunc) (struct block_list *src);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_cleartimerskill_pre; hIndex++ ) {
@@ -55736,8 +54760,7 @@ int HP_skill_cleartimerskill(struct block_list *src) {
}
int HP_skill_addtimerskill(struct block_list *src, unsigned int tick, int target, int x, int y, uint16 skill_id, uint16 skill_lv, int type, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_addtimerskill_pre ) {
int (*preHookFunc) (struct block_list *src, unsigned int *tick, int *target, int *x, int *y, uint16 *skill_id, uint16 *skill_lv, int *type, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_addtimerskill_pre; hIndex++ ) {
@@ -55763,8 +54786,7 @@ int HP_skill_addtimerskill(struct block_list *src, unsigned int tick, int target
}
int HP_skill_additional_effect(struct block_list *src, struct block_list *bl, uint16 skill_id, uint16 skill_lv, int attack_type, int dmg_lv, unsigned int tick) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_additional_effect_pre ) {
int (*preHookFunc) (struct block_list *src, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int *attack_type, int *dmg_lv, unsigned int *tick);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_additional_effect_pre; hIndex++ ) {
@@ -55790,8 +54812,7 @@ int HP_skill_additional_effect(struct block_list *src, struct block_list *bl, ui
}
int HP_skill_counter_additional_effect(struct block_list *src, struct block_list *bl, uint16 skill_id, uint16 skill_lv, int attack_type, unsigned int tick) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_counter_additional_effect_pre ) {
int (*preHookFunc) (struct block_list *src, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, int *attack_type, unsigned int *tick);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_counter_additional_effect_pre; hIndex++ ) {
@@ -55817,8 +54838,7 @@ int HP_skill_counter_additional_effect(struct block_list *src, struct block_list
}
int HP_skill_blown(struct block_list *src, struct block_list *target, int count, int8 dir, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_blown_pre ) {
int (*preHookFunc) (struct block_list *src, struct block_list *target, int *count, int8 *dir, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_blown_pre; hIndex++ ) {
@@ -55844,8 +54864,7 @@ int HP_skill_blown(struct block_list *src, struct block_list *target, int count,
}
int HP_skill_break_equip(struct block_list *bl, unsigned short where, int rate, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_break_equip_pre ) {
int (*preHookFunc) (struct block_list *bl, unsigned short *where, int *rate, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_break_equip_pre; hIndex++ ) {
@@ -55871,8 +54890,7 @@ int HP_skill_break_equip(struct block_list *bl, unsigned short where, int rate,
}
int HP_skill_strip_equip(struct block_list *bl, unsigned short where, int rate, int lv, int time) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_strip_equip_pre ) {
int (*preHookFunc) (struct block_list *bl, unsigned short *where, int *rate, int *lv, int *time);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_strip_equip_pre; hIndex++ ) {
@@ -55976,8 +54994,7 @@ struct skill_unit* HP_skill_initunit(struct skill_unit_group *group, int idx, in
}
int HP_skill_delunit(struct skill_unit *su) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_delunit_pre ) {
int (*preHookFunc) (struct skill_unit *su);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_delunit_pre; hIndex++ ) {
@@ -56029,8 +55046,7 @@ struct skill_unit_group* HP_skill_init_unitgroup(struct block_list *src, int cou
}
int HP_skill_del_unitgroup(struct skill_unit_group *group, const char *file, int line, const char *func) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_del_unitgroup_pre ) {
int (*preHookFunc) (struct skill_unit_group *group, const char *file, int *line, const char *func);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_del_unitgroup_pre; hIndex++ ) {
@@ -56056,8 +55072,7 @@ int HP_skill_del_unitgroup(struct skill_unit_group *group, const char *file, int
}
int HP_skill_clear_unitgroup(struct block_list *src) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_clear_unitgroup_pre ) {
int (*preHookFunc) (struct block_list *src);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_clear_unitgroup_pre; hIndex++ ) {
@@ -56083,8 +55098,7 @@ int HP_skill_clear_unitgroup(struct block_list *src) {
}
int HP_skill_clear_group(struct block_list *bl, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_clear_group_pre ) {
int (*preHookFunc) (struct block_list *bl, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_clear_group_pre; hIndex++ ) {
@@ -56110,8 +55124,7 @@ int HP_skill_clear_group(struct block_list *bl, int flag) {
}
int HP_skill_unit_onplace(struct skill_unit *src, struct block_list *bl, unsigned int tick) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_unit_onplace_pre ) {
int (*preHookFunc) (struct skill_unit *src, struct block_list *bl, unsigned int *tick);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unit_onplace_pre; hIndex++ ) {
@@ -56137,8 +55150,7 @@ int HP_skill_unit_onplace(struct skill_unit *src, struct block_list *bl, unsigne
}
int HP_skill_unit_ondamaged(struct skill_unit *src, struct block_list *bl, int64 damage, unsigned int tick) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_unit_ondamaged_pre ) {
int (*preHookFunc) (struct skill_unit *src, struct block_list *bl, int64 *damage, unsigned int *tick);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unit_ondamaged_pre; hIndex++ ) {
@@ -56164,8 +55176,7 @@ int HP_skill_unit_ondamaged(struct skill_unit *src, struct block_list *bl, int64
}
int HP_skill_cast_fix(struct block_list *bl, uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_cast_fix_pre ) {
int (*preHookFunc) (struct block_list *bl, uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_cast_fix_pre; hIndex++ ) {
@@ -56191,8 +55202,7 @@ int HP_skill_cast_fix(struct block_list *bl, uint16 skill_id, uint16 skill_lv) {
}
int HP_skill_cast_fix_sc(struct block_list *bl, int time) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_cast_fix_sc_pre ) {
int (*preHookFunc) (struct block_list *bl, int *time);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_cast_fix_sc_pre; hIndex++ ) {
@@ -56218,8 +55228,7 @@ int HP_skill_cast_fix_sc(struct block_list *bl, int time) {
}
int HP_skill_vf_cast_fix(struct block_list *bl, double time, uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_vf_cast_fix_pre ) {
int (*preHookFunc) (struct block_list *bl, double *time, uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_vf_cast_fix_pre; hIndex++ ) {
@@ -56245,8 +55254,7 @@ int HP_skill_vf_cast_fix(struct block_list *bl, double time, uint16 skill_id, ui
}
int HP_skill_delay_fix(struct block_list *bl, uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_delay_fix_pre ) {
int (*preHookFunc) (struct block_list *bl, uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_delay_fix_pre; hIndex++ ) {
@@ -56272,8 +55280,7 @@ int HP_skill_delay_fix(struct block_list *bl, uint16 skill_id, uint16 skill_lv)
}
int HP_skill_check_condition_castbegin(struct map_session_data *sd, uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_check_condition_castbegin_pre ) {
int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_condition_castbegin_pre; hIndex++ ) {
@@ -56299,8 +55306,7 @@ int HP_skill_check_condition_castbegin(struct map_session_data *sd, uint16 skill
}
int HP_skill_check_condition_castend(struct map_session_data *sd, uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_check_condition_castend_pre ) {
int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_condition_castend_pre; hIndex++ ) {
@@ -56326,8 +55332,7 @@ int HP_skill_check_condition_castend(struct map_session_data *sd, uint16 skill_i
}
int HP_skill_consume_requirement(struct map_session_data *sd, uint16 skill_id, uint16 skill_lv, short type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_consume_requirement_pre ) {
int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id, uint16 *skill_lv, short *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_consume_requirement_pre; hIndex++ ) {
@@ -56380,8 +55385,7 @@ struct skill_condition HP_skill_get_requirement(struct map_session_data *sd, uin
}
int HP_skill_check_pc_partner(struct map_session_data *sd, uint16 skill_id, uint16 *skill_lv, int range, int cast_flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_check_pc_partner_pre ) {
int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id, uint16 *skill_lv, int *range, int *cast_flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_pc_partner_pre; hIndex++ ) {
@@ -56407,8 +55411,7 @@ int HP_skill_check_pc_partner(struct map_session_data *sd, uint16 skill_id, uint
}
int HP_skill_unit_move(struct block_list *bl, unsigned int tick, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_unit_move_pre ) {
int (*preHookFunc) (struct block_list *bl, unsigned int *tick, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unit_move_pre; hIndex++ ) {
@@ -56434,8 +55437,7 @@ int HP_skill_unit_move(struct block_list *bl, unsigned int tick, int flag) {
}
int HP_skill_unit_onleft(uint16 skill_id, struct block_list *bl, unsigned int tick) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_unit_onleft_pre ) {
int (*preHookFunc) (uint16 *skill_id, struct block_list *bl, unsigned int *tick);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unit_onleft_pre; hIndex++ ) {
@@ -56461,8 +55463,7 @@ int HP_skill_unit_onleft(uint16 skill_id, struct block_list *bl, unsigned int ti
}
int HP_skill_unit_onout(struct skill_unit *src, struct block_list *bl, unsigned int tick) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_unit_onout_pre ) {
int (*preHookFunc) (struct skill_unit *src, struct block_list *bl, unsigned int *tick);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unit_onout_pre; hIndex++ ) {
@@ -56488,8 +55489,7 @@ int HP_skill_unit_onout(struct skill_unit *src, struct block_list *bl, unsigned
}
int HP_skill_unit_move_unit_group(struct skill_unit_group *group, int16 m, int16 dx, int16 dy) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_unit_move_unit_group_pre ) {
int (*preHookFunc) (struct skill_unit_group *group, int16 *m, int16 *dx, int16 *dy);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unit_move_unit_group_pre; hIndex++ ) {
@@ -56515,8 +55515,7 @@ int HP_skill_unit_move_unit_group(struct skill_unit_group *group, int16 m, int16
}
int HP_skill_sit(struct map_session_data *sd, int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_sit_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_sit_pre; hIndex++ ) {
@@ -56642,8 +55641,7 @@ void HP_skill_weaponrefine(struct map_session_data *sd, int idx) {
}
int HP_skill_autospell(struct map_session_data *md, uint16 skill_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_autospell_pre ) {
int (*preHookFunc) (struct map_session_data *md, uint16 *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_autospell_pre; hIndex++ ) {
@@ -56669,8 +55667,7 @@ int HP_skill_autospell(struct map_session_data *md, uint16 skill_id) {
}
int HP_skill_calc_heal(struct block_list *src, struct block_list *target, uint16 skill_id, uint16 skill_lv, bool heal) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_calc_heal_pre ) {
int (*preHookFunc) (struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, bool *heal);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_calc_heal_pre; hIndex++ ) {
@@ -56696,8 +55693,7 @@ int HP_skill_calc_heal(struct block_list *src, struct block_list *target, uint16
}
bool HP_skill_check_cloaking(struct block_list *bl, struct status_change_entry *sce) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_skill_check_cloaking_pre ) {
bool (*preHookFunc) (struct block_list *bl, struct status_change_entry *sce);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_cloaking_pre; hIndex++ ) {
@@ -56723,8 +55719,7 @@ bool HP_skill_check_cloaking(struct block_list *bl, struct status_change_entry *
}
int HP_skill_enchant_elemental_end(struct block_list *bl, int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_enchant_elemental_end_pre ) {
int (*preHookFunc) (struct block_list *bl, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_enchant_elemental_end_pre; hIndex++ ) {
@@ -56750,8 +55745,7 @@ int HP_skill_enchant_elemental_end(struct block_list *bl, int type) {
}
int HP_skill_not_ok(uint16 skill_id, struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_not_ok_pre ) {
int (*preHookFunc) (uint16 *skill_id, struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_not_ok_pre; hIndex++ ) {
@@ -56777,8 +55771,7 @@ int HP_skill_not_ok(uint16 skill_id, struct map_session_data *sd) {
}
int HP_skill_not_ok_hom(uint16 skill_id, struct homun_data *hd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_not_ok_hom_pre ) {
int (*preHookFunc) (uint16 *skill_id, struct homun_data *hd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_not_ok_hom_pre; hIndex++ ) {
@@ -56804,8 +55797,7 @@ int HP_skill_not_ok_hom(uint16 skill_id, struct homun_data *hd) {
}
int HP_skill_not_ok_mercenary(uint16 skill_id, struct mercenary_data *md) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_not_ok_mercenary_pre ) {
int (*preHookFunc) (uint16 *skill_id, struct mercenary_data *md);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_not_ok_mercenary_pre; hIndex++ ) {
@@ -56831,8 +55823,7 @@ int HP_skill_not_ok_mercenary(uint16 skill_id, struct mercenary_data *md) {
}
int HP_skill_chastle_mob_changetarget(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_chastle_mob_changetarget_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_chastle_mob_changetarget_pre; hIndex++ ) {
@@ -56864,8 +55855,7 @@ int HP_skill_chastle_mob_changetarget(struct block_list *bl, va_list ap) {
}
int HP_skill_can_produce_mix(struct map_session_data *sd, int nameid, int trigger, int qty) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_can_produce_mix_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *nameid, int *trigger, int *qty);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_can_produce_mix_pre; hIndex++ ) {
@@ -56891,8 +55881,7 @@ int HP_skill_can_produce_mix(struct map_session_data *sd, int nameid, int trigge
}
int HP_skill_produce_mix(struct map_session_data *sd, uint16 skill_id, int nameid, int slot1, int slot2, int slot3, int qty) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_produce_mix_pre ) {
int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id, int *nameid, int *slot1, int *slot2, int *slot3, int *qty);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_produce_mix_pre; hIndex++ ) {
@@ -56918,8 +55907,7 @@ int HP_skill_produce_mix(struct map_session_data *sd, uint16 skill_id, int namei
}
int HP_skill_arrow_create(struct map_session_data *sd, int nameid) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_arrow_create_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *nameid);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_arrow_create_pre; hIndex++ ) {
@@ -56945,8 +55933,7 @@ int HP_skill_arrow_create(struct map_session_data *sd, int nameid) {
}
int HP_skill_castend_nodamage_id(struct block_list *src, struct block_list *bl, uint16 skill_id, uint16 skill_lv, unsigned int tick, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_castend_nodamage_id_pre ) {
int (*preHookFunc) (struct block_list *src, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, unsigned int *tick, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_castend_nodamage_id_pre; hIndex++ ) {
@@ -56972,8 +55959,7 @@ int HP_skill_castend_nodamage_id(struct block_list *src, struct block_list *bl,
}
int HP_skill_castend_damage_id(struct block_list *src, struct block_list *bl, uint16 skill_id, uint16 skill_lv, unsigned int tick, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_castend_damage_id_pre ) {
int (*preHookFunc) (struct block_list *src, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, unsigned int *tick, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_castend_damage_id_pre; hIndex++ ) {
@@ -56999,8 +55985,7 @@ int HP_skill_castend_damage_id(struct block_list *src, struct block_list *bl, ui
}
int HP_skill_castend_pos2(struct block_list *src, int x, int y, uint16 skill_id, uint16 skill_lv, unsigned int tick, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_castend_pos2_pre ) {
int (*preHookFunc) (struct block_list *src, int *x, int *y, uint16 *skill_id, uint16 *skill_lv, unsigned int *tick, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_castend_pos2_pre; hIndex++ ) {
@@ -57026,8 +56011,7 @@ int HP_skill_castend_pos2(struct block_list *src, int x, int y, uint16 skill_id,
}
int HP_skill_blockpc_start(struct map_session_data *sd, uint16 skill_id, int tick, bool load) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_blockpc_start_pre ) {
int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id, int *tick, bool *load);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_blockpc_start_pre; hIndex++ ) {
@@ -57053,8 +56037,7 @@ int HP_skill_blockpc_start(struct map_session_data *sd, uint16 skill_id, int tic
}
int HP_skill_blockhomun_start(struct homun_data *hd, uint16 skill_id, int tick) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_blockhomun_start_pre ) {
int (*preHookFunc) (struct homun_data *hd, uint16 *skill_id, int *tick);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_blockhomun_start_pre; hIndex++ ) {
@@ -57080,8 +56063,7 @@ int HP_skill_blockhomun_start(struct homun_data *hd, uint16 skill_id, int tick)
}
int HP_skill_blockmerc_start(struct mercenary_data *md, uint16 skill_id, int tick) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_blockmerc_start_pre ) {
int (*preHookFunc) (struct mercenary_data *md, uint16 *skill_id, int *tick);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_blockmerc_start_pre; hIndex++ ) {
@@ -57107,8 +56089,7 @@ int HP_skill_blockmerc_start(struct mercenary_data *md, uint16 skill_id, int tic
}
int HP_skill_attack(int attack_type, struct block_list *src, struct block_list *dsrc, struct block_list *bl, uint16 skill_id, uint16 skill_lv, unsigned int tick, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_attack_pre ) {
int (*preHookFunc) (int *attack_type, struct block_list *src, struct block_list *dsrc, struct block_list *bl, uint16 *skill_id, uint16 *skill_lv, unsigned int *tick, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_attack_pre; hIndex++ ) {
@@ -57134,8 +56115,7 @@ int HP_skill_attack(int attack_type, struct block_list *src, struct block_list *
}
int HP_skill_attack_area(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_attack_area_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_attack_area_pre; hIndex++ ) {
@@ -57167,8 +56147,7 @@ int HP_skill_attack_area(struct block_list *bl, va_list ap) {
}
int HP_skill_area_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_area_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_area_sub_pre; hIndex++ ) {
@@ -57200,8 +56179,7 @@ int HP_skill_area_sub(struct block_list *bl, va_list ap) {
}
int HP_skill_area_sub_count(struct block_list *src, struct block_list *target, uint16 skill_id, uint16 skill_lv, unsigned int tick, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_area_sub_count_pre ) {
int (*preHookFunc) (struct block_list *src, struct block_list *target, uint16 *skill_id, uint16 *skill_lv, unsigned int *tick, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_area_sub_count_pre; hIndex++ ) {
@@ -57227,8 +56205,7 @@ int HP_skill_area_sub_count(struct block_list *src, struct block_list *target, u
}
int HP_skill_check_unit_range(struct block_list *bl, int x, int y, uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_check_unit_range_pre ) {
int (*preHookFunc) (struct block_list *bl, int *x, int *y, uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_unit_range_pre; hIndex++ ) {
@@ -57254,8 +56231,7 @@ int HP_skill_check_unit_range(struct block_list *bl, int x, int y, uint16 skill_
}
int HP_skill_check_unit_range_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_check_unit_range_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_unit_range_sub_pre; hIndex++ ) {
@@ -57287,8 +56263,7 @@ int HP_skill_check_unit_range_sub(struct block_list *bl, va_list ap) {
}
int HP_skill_check_unit_range2(struct block_list *bl, int x, int y, uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_check_unit_range2_pre ) {
int (*preHookFunc) (struct block_list *bl, int *x, int *y, uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_unit_range2_pre; hIndex++ ) {
@@ -57314,8 +56289,7 @@ int HP_skill_check_unit_range2(struct block_list *bl, int x, int y, uint16 skill
}
int HP_skill_check_unit_range2_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_check_unit_range2_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_unit_range2_sub_pre; hIndex++ ) {
@@ -57372,8 +56346,7 @@ void HP_skill_toggle_magicpower(struct block_list *bl, uint16 skill_id) {
}
int HP_skill_magic_reflect(struct block_list *src, struct block_list *bl, int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_magic_reflect_pre ) {
int (*preHookFunc) (struct block_list *src, struct block_list *bl, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_magic_reflect_pre; hIndex++ ) {
@@ -57399,8 +56372,7 @@ int HP_skill_magic_reflect(struct block_list *src, struct block_list *bl, int ty
}
int HP_skill_onskillusage(struct map_session_data *sd, struct block_list *bl, uint16 skill_id, unsigned int tick) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_onskillusage_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct block_list *bl, uint16 *skill_id, unsigned int *tick);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_onskillusage_pre; hIndex++ ) {
@@ -57426,8 +56398,7 @@ int HP_skill_onskillusage(struct map_session_data *sd, struct block_list *bl, ui
}
int HP_skill_cell_overlap(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_cell_overlap_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_cell_overlap_pre; hIndex++ ) {
@@ -57459,8 +56430,7 @@ int HP_skill_cell_overlap(struct block_list *bl, va_list ap) {
}
int HP_skill_timerskill(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_timerskill_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_timerskill_pre; hIndex++ ) {
@@ -57486,8 +56456,7 @@ int HP_skill_timerskill(int tid, unsigned int tick, int id, intptr_t data) {
}
int HP_skill_trap_splash(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_trap_splash_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_trap_splash_pre; hIndex++ ) {
@@ -57519,8 +56488,7 @@ int HP_skill_trap_splash(struct block_list *bl, va_list ap) {
}
int HP_skill_check_condition_mercenary(struct block_list *bl, int skill_id, int lv, int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_check_condition_mercenary_pre ) {
int (*preHookFunc) (struct block_list *bl, int *skill_id, int *lv, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_condition_mercenary_pre; hIndex++ ) {
@@ -57572,8 +56540,7 @@ struct skill_unit_group* HP_skill_locate_element_field(struct block_list *bl) {
}
int HP_skill_graffitiremover(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_graffitiremover_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_graffitiremover_pre; hIndex++ ) {
@@ -57605,8 +56572,7 @@ int HP_skill_graffitiremover(struct block_list *bl, va_list ap) {
}
int HP_skill_activate_reverberation(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_activate_reverberation_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_activate_reverberation_pre; hIndex++ ) {
@@ -57638,8 +56604,7 @@ int HP_skill_activate_reverberation(struct block_list *bl, va_list ap) {
}
int HP_skill_dance_overlap_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_dance_overlap_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_dance_overlap_sub_pre; hIndex++ ) {
@@ -57671,8 +56636,7 @@ int HP_skill_dance_overlap_sub(struct block_list *bl, va_list ap) {
}
int HP_skill_dance_overlap(struct skill_unit *su, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_dance_overlap_pre ) {
int (*preHookFunc) (struct skill_unit *su, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_dance_overlap_pre; hIndex++ ) {
@@ -57724,8 +56688,7 @@ struct s_skill_unit_layout* HP_skill_get_unit_layout(uint16 skill_id, uint16 ski
}
int HP_skill_frostjoke_scream(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_frostjoke_scream_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_frostjoke_scream_pre; hIndex++ ) {
@@ -57757,8 +56720,7 @@ int HP_skill_frostjoke_scream(struct block_list *bl, va_list ap) {
}
int HP_skill_greed(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_greed_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_greed_pre; hIndex++ ) {
@@ -57790,8 +56752,7 @@ int HP_skill_greed(struct block_list *bl, va_list ap) {
}
int HP_skill_destroy_trap(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_destroy_trap_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_destroy_trap_pre; hIndex++ ) {
@@ -57823,8 +56784,7 @@ int HP_skill_destroy_trap(struct block_list *bl, va_list ap) {
}
int HP_skill_icewall_block(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_icewall_block_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_icewall_block_pre; hIndex++ ) {
@@ -57882,8 +56842,7 @@ struct skill_unit_group_tickset* HP_skill_unitgrouptickset_search(struct block_l
}
bool HP_skill_dance_switch(struct skill_unit *su, int flag) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_skill_dance_switch_pre ) {
bool (*preHookFunc) (struct skill_unit *su, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_dance_switch_pre; hIndex++ ) {
@@ -57909,8 +56868,7 @@ bool HP_skill_dance_switch(struct skill_unit *su, int flag) {
}
int HP_skill_check_condition_char_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_check_condition_char_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_condition_char_sub_pre; hIndex++ ) {
@@ -57942,8 +56900,7 @@ int HP_skill_check_condition_char_sub(struct block_list *bl, va_list ap) {
}
int HP_skill_check_condition_mob_master_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_check_condition_mob_master_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_condition_mob_master_sub_pre; hIndex++ ) {
@@ -58025,8 +56982,7 @@ void HP_skill_brandishspear_dir(struct square *tc, uint8 dir, int are) {
}
int HP_skill_get_fixed_cast(uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_fixed_cast_pre ) {
int (*preHookFunc) (uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_fixed_cast_pre; hIndex++ ) {
@@ -58052,8 +57008,7 @@ int HP_skill_get_fixed_cast(uint16 skill_id, uint16 skill_lv) {
}
int HP_skill_sit_count(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_sit_count_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_sit_count_pre; hIndex++ ) {
@@ -58085,8 +57040,7 @@ int HP_skill_sit_count(struct block_list *bl, va_list ap) {
}
int HP_skill_sit_in(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_sit_in_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_sit_in_pre; hIndex++ ) {
@@ -58118,8 +57072,7 @@ int HP_skill_sit_in(struct block_list *bl, va_list ap) {
}
int HP_skill_sit_out(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_sit_out_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_sit_out_pre; hIndex++ ) {
@@ -58176,8 +57129,7 @@ void HP_skill_unitsetmapcell(struct skill_unit *src, uint16 skill_id, uint16 ski
}
int HP_skill_unit_onplace_timer(struct skill_unit *src, struct block_list *bl, unsigned int tick) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_unit_onplace_timer_pre ) {
int (*preHookFunc) (struct skill_unit *src, struct block_list *bl, unsigned int *tick);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unit_onplace_timer_pre; hIndex++ ) {
@@ -58203,8 +57155,7 @@ int HP_skill_unit_onplace_timer(struct skill_unit *src, struct block_list *bl, u
}
int HP_skill_unit_effect(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_unit_effect_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unit_effect_pre; hIndex++ ) {
@@ -58236,8 +57187,7 @@ int HP_skill_unit_effect(struct block_list *bl, va_list ap) {
}
int HP_skill_unit_timer_sub_onplace(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_unit_timer_sub_onplace_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unit_timer_sub_onplace_pre; hIndex++ ) {
@@ -58269,8 +57219,7 @@ int HP_skill_unit_timer_sub_onplace(struct block_list *bl, va_list ap) {
}
int HP_skill_unit_move_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_unit_move_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unit_move_sub_pre; hIndex++ ) {
@@ -58302,8 +57251,7 @@ int HP_skill_unit_move_sub(struct block_list *bl, va_list ap) {
}
int HP_skill_blockpc_end(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_blockpc_end_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_blockpc_end_pre; hIndex++ ) {
@@ -58329,8 +57277,7 @@ int HP_skill_blockpc_end(int tid, unsigned int tick, int id, intptr_t data) {
}
int HP_skill_blockhomun_end(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_blockhomun_end_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_blockhomun_end_pre; hIndex++ ) {
@@ -58356,8 +57303,7 @@ int HP_skill_blockhomun_end(int tid, unsigned int tick, int id, intptr_t data) {
}
int HP_skill_blockmerc_end(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_blockmerc_end_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_blockmerc_end_pre; hIndex++ ) {
@@ -58383,8 +57329,7 @@ int HP_skill_blockmerc_end(int tid, unsigned int tick, int id, intptr_t data) {
}
int HP_skill_split_atoi(char *str, int *val) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_split_atoi_pre ) {
int (*preHookFunc) (char *str, int *val);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_split_atoi_pre; hIndex++ ) {
@@ -58410,8 +57355,7 @@ int HP_skill_split_atoi(char *str, int *val) {
}
int HP_skill_unit_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_unit_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unit_timer_pre; hIndex++ ) {
@@ -58437,8 +57381,7 @@ int HP_skill_unit_timer(int tid, unsigned int tick, int id, intptr_t data) {
}
int HP_skill_unit_timer_sub(DBKey key, DBData *data, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_unit_timer_sub_pre ) {
int (*preHookFunc) (DBKey *key, DBData *data, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_unit_timer_sub_pre; hIndex++ ) {
@@ -58495,8 +57438,7 @@ void HP_skill_init_unit_layout(void) {
}
bool HP_skill_parse_row_skilldb(char *split[], int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_skill_parse_row_skilldb_pre ) {
bool (*preHookFunc) (char *split[], int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_skilldb_pre; hIndex++ ) {
@@ -58522,8 +57464,7 @@ bool HP_skill_parse_row_skilldb(char *split[], int columns, int current) {
}
bool HP_skill_parse_row_requiredb(char *split[], int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_skill_parse_row_requiredb_pre ) {
bool (*preHookFunc) (char *split[], int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_requiredb_pre; hIndex++ ) {
@@ -58549,8 +57490,7 @@ bool HP_skill_parse_row_requiredb(char *split[], int columns, int current) {
}
bool HP_skill_parse_row_castdb(char *split[], int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_skill_parse_row_castdb_pre ) {
bool (*preHookFunc) (char *split[], int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_castdb_pre; hIndex++ ) {
@@ -58576,8 +57516,7 @@ bool HP_skill_parse_row_castdb(char *split[], int columns, int current) {
}
bool HP_skill_parse_row_castnodexdb(char *split[], int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_skill_parse_row_castnodexdb_pre ) {
bool (*preHookFunc) (char *split[], int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_castnodexdb_pre; hIndex++ ) {
@@ -58603,8 +57542,7 @@ bool HP_skill_parse_row_castnodexdb(char *split[], int columns, int current) {
}
bool HP_skill_parse_row_unitdb(char *split[], int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_skill_parse_row_unitdb_pre ) {
bool (*preHookFunc) (char *split[], int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_unitdb_pre; hIndex++ ) {
@@ -58630,8 +57568,7 @@ bool HP_skill_parse_row_unitdb(char *split[], int columns, int current) {
}
bool HP_skill_parse_row_producedb(char *split[], int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_skill_parse_row_producedb_pre ) {
bool (*preHookFunc) (char *split[], int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_producedb_pre; hIndex++ ) {
@@ -58657,8 +57594,7 @@ bool HP_skill_parse_row_producedb(char *split[], int columns, int current) {
}
bool HP_skill_parse_row_createarrowdb(char *split[], int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_skill_parse_row_createarrowdb_pre ) {
bool (*preHookFunc) (char *split[], int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_createarrowdb_pre; hIndex++ ) {
@@ -58684,8 +57620,7 @@ bool HP_skill_parse_row_createarrowdb(char *split[], int columns, int current) {
}
bool HP_skill_parse_row_abradb(char *split[], int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_skill_parse_row_abradb_pre ) {
bool (*preHookFunc) (char *split[], int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_abradb_pre; hIndex++ ) {
@@ -58711,8 +57646,7 @@ bool HP_skill_parse_row_abradb(char *split[], int columns, int current) {
}
bool HP_skill_parse_row_spellbookdb(char *split[], int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_skill_parse_row_spellbookdb_pre ) {
bool (*preHookFunc) (char *split[], int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_spellbookdb_pre; hIndex++ ) {
@@ -58738,8 +57672,7 @@ bool HP_skill_parse_row_spellbookdb(char *split[], int columns, int current) {
}
bool HP_skill_parse_row_magicmushroomdb(char *split[], int column, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_skill_parse_row_magicmushroomdb_pre ) {
bool (*preHookFunc) (char *split[], int *column, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_magicmushroomdb_pre; hIndex++ ) {
@@ -58765,8 +57698,7 @@ bool HP_skill_parse_row_magicmushroomdb(char *split[], int column, int current)
}
bool HP_skill_parse_row_reproducedb(char *split[], int column, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_skill_parse_row_reproducedb_pre ) {
bool (*preHookFunc) (char *split[], int *column, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_reproducedb_pre; hIndex++ ) {
@@ -58792,8 +57724,7 @@ bool HP_skill_parse_row_reproducedb(char *split[], int column, int current) {
}
bool HP_skill_parse_row_improvisedb(char *split[], int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_skill_parse_row_improvisedb_pre ) {
bool (*preHookFunc) (char *split[], int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_improvisedb_pre; hIndex++ ) {
@@ -58819,8 +57750,7 @@ bool HP_skill_parse_row_improvisedb(char *split[], int columns, int current) {
}
bool HP_skill_parse_row_changematerialdb(char *split[], int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_skill_parse_row_changematerialdb_pre ) {
bool (*preHookFunc) (char *split[], int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_parse_row_changematerialdb_pre; hIndex++ ) {
@@ -58921,8 +57851,7 @@ void HP_skill_cooldown_load(struct map_session_data *sd) {
}
int HP_skill_spellbook(struct map_session_data *sd, int nameid) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_spellbook_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *nameid);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_spellbook_pre; hIndex++ ) {
@@ -58948,8 +57877,7 @@ int HP_skill_spellbook(struct map_session_data *sd, int nameid) {
}
int HP_skill_block_check(struct block_list *bl, enum sc_type type, uint16 skill_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_block_check_pre ) {
int (*preHookFunc) (struct block_list *bl, enum sc_type *type, uint16 *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_block_check_pre; hIndex++ ) {
@@ -58975,8 +57903,7 @@ int HP_skill_block_check(struct block_list *bl, enum sc_type type, uint16 skill_
}
int HP_skill_detonator(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_detonator_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_detonator_pre; hIndex++ ) {
@@ -59008,8 +57935,7 @@ int HP_skill_detonator(struct block_list *bl, va_list ap) {
}
bool HP_skill_check_camouflage(struct block_list *bl, struct status_change_entry *sce) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_skill_check_camouflage_pre ) {
bool (*preHookFunc) (struct block_list *bl, struct status_change_entry *sce);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_check_camouflage_pre; hIndex++ ) {
@@ -59035,8 +57961,7 @@ bool HP_skill_check_camouflage(struct block_list *bl, struct status_change_entry
}
int HP_skill_magicdecoy(struct map_session_data *sd, int nameid) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_magicdecoy_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *nameid);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_magicdecoy_pre; hIndex++ ) {
@@ -59062,8 +57987,7 @@ int HP_skill_magicdecoy(struct map_session_data *sd, int nameid) {
}
int HP_skill_poisoningweapon(struct map_session_data *sd, int nameid) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_poisoningweapon_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *nameid);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_poisoningweapon_pre; hIndex++ ) {
@@ -59089,8 +58013,7 @@ int HP_skill_poisoningweapon(struct map_session_data *sd, int nameid) {
}
int HP_skill_select_menu(struct map_session_data *sd, uint16 skill_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_select_menu_pre ) {
int (*preHookFunc) (struct map_session_data *sd, uint16 *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_select_menu_pre; hIndex++ ) {
@@ -59116,8 +58039,7 @@ int HP_skill_select_menu(struct map_session_data *sd, uint16 skill_id) {
}
int HP_skill_elementalanalysis(struct map_session_data *sd, int n, uint16 skill_lv, unsigned short *item_list) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_elementalanalysis_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *n, uint16 *skill_lv, unsigned short *item_list);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_elementalanalysis_pre; hIndex++ ) {
@@ -59143,8 +58065,7 @@ int HP_skill_elementalanalysis(struct map_session_data *sd, int n, uint16 skill_
}
int HP_skill_changematerial(struct map_session_data *sd, int n, unsigned short *item_list) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_changematerial_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *n, unsigned short *item_list);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_changematerial_pre; hIndex++ ) {
@@ -59170,8 +58091,7 @@ int HP_skill_changematerial(struct map_session_data *sd, int n, unsigned short *
}
int HP_skill_get_elemental_type(uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_elemental_type_pre ) {
int (*preHookFunc) (uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_elemental_type_pre; hIndex++ ) {
@@ -59222,8 +58142,7 @@ void HP_skill_cooldown_save(struct map_session_data *sd) {
}
int HP_skill_maelstrom_suction(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_maelstrom_suction_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_maelstrom_suction_pre; hIndex++ ) {
@@ -59255,8 +58174,7 @@ int HP_skill_maelstrom_suction(struct block_list *bl, va_list ap) {
}
int HP_skill_get_new_group_id(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_skill_get_new_group_id_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_skill_get_new_group_id_pre; hIndex++ ) {
@@ -59283,8 +58201,7 @@ int HP_skill_get_new_group_id(void) {
/* status */
int HP_status_init(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_init_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_init_pre; hIndex++ ) {
@@ -59335,8 +58252,7 @@ void HP_status_final(void) {
}
int HP_status_get_refine_chance(enum refine_type wlv, int refine) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_get_refine_chance_pre ) {
int (*preHookFunc) (enum refine_type *wlv, int *refine);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_refine_chance_pre; hIndex++ ) {
@@ -59362,8 +58278,7 @@ int HP_status_get_refine_chance(enum refine_type wlv, int refine) {
}
sc_type HP_status_skill2sc(int skill_id) {
int hIndex = 0;
- sc_type retVal___;
- memset(&retVal___, '\0', sizeof(sc_type));
+ sc_type retVal___ = SC_NONE;
if( HPMHooks.count.HP_status_skill2sc_pre ) {
sc_type (*preHookFunc) (int *skill_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_skill2sc_pre; hIndex++ ) {
@@ -59389,8 +58304,7 @@ sc_type HP_status_skill2sc(int skill_id) {
}
int HP_status_sc2skill(sc_type sc) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_sc2skill_pre ) {
int (*preHookFunc) (sc_type *sc);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_sc2skill_pre; hIndex++ ) {
@@ -59416,8 +58330,7 @@ int HP_status_sc2skill(sc_type sc) {
}
unsigned int HP_status_sc2scb_flag(sc_type sc) {
int hIndex = 0;
- unsigned int retVal___;
- memset(&retVal___, '\0', sizeof(unsigned int));
+ unsigned int retVal___ = 0;
if( HPMHooks.count.HP_status_sc2scb_flag_pre ) {
unsigned int (*preHookFunc) (sc_type *sc);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_sc2scb_flag_pre; hIndex++ ) {
@@ -59443,8 +58356,7 @@ unsigned int HP_status_sc2scb_flag(sc_type sc) {
}
int HP_status_type2relevant_bl_types(int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_type2relevant_bl_types_pre ) {
int (*preHookFunc) (int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_type2relevant_bl_types_pre; hIndex++ ) {
@@ -59470,8 +58382,7 @@ int HP_status_type2relevant_bl_types(int type) {
}
int HP_status_get_sc_type(sc_type idx) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_get_sc_type_pre ) {
int (*preHookFunc) (sc_type *idx);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_sc_type_pre; hIndex++ ) {
@@ -59497,8 +58408,7 @@ int HP_status_get_sc_type(sc_type idx) {
}
int HP_status_damage(struct block_list *src, struct block_list *target, int64 hp, int64 sp, int walkdelay, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_damage_pre ) {
int (*preHookFunc) (struct block_list *src, struct block_list *target, int64 *hp, int64 *sp, int *walkdelay, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_damage_pre; hIndex++ ) {
@@ -59524,8 +58434,7 @@ int HP_status_damage(struct block_list *src, struct block_list *target, int64 hp
}
int HP_status_charge(struct block_list *bl, int64 hp, int64 sp) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_charge_pre ) {
int (*preHookFunc) (struct block_list *bl, int64 *hp, int64 *sp);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_charge_pre; hIndex++ ) {
@@ -59551,8 +58460,7 @@ int HP_status_charge(struct block_list *bl, int64 hp, int64 sp) {
}
int HP_status_percent_change(struct block_list *src, struct block_list *target, signed char hp_rate, signed char sp_rate, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_percent_change_pre ) {
int (*preHookFunc) (struct block_list *src, struct block_list *target, signed char *hp_rate, signed char *sp_rate, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_percent_change_pre; hIndex++ ) {
@@ -59578,8 +58486,7 @@ int HP_status_percent_change(struct block_list *src, struct block_list *target,
}
int HP_status_set_hp(struct block_list *bl, unsigned int hp, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_set_hp_pre ) {
int (*preHookFunc) (struct block_list *bl, unsigned int *hp, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_set_hp_pre; hIndex++ ) {
@@ -59605,8 +58512,7 @@ int HP_status_set_hp(struct block_list *bl, unsigned int hp, int flag) {
}
int HP_status_set_sp(struct block_list *bl, unsigned int sp, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_set_sp_pre ) {
int (*preHookFunc) (struct block_list *bl, unsigned int *sp, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_set_sp_pre; hIndex++ ) {
@@ -59632,8 +58538,7 @@ int HP_status_set_sp(struct block_list *bl, unsigned int sp, int flag) {
}
int HP_status_heal(struct block_list *bl, int64 hp, int64 sp, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_heal_pre ) {
int (*preHookFunc) (struct block_list *bl, int64 *hp, int64 *sp, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_heal_pre; hIndex++ ) {
@@ -59659,8 +58564,7 @@ int HP_status_heal(struct block_list *bl, int64 hp, int64 sp, int flag) {
}
int HP_status_revive(struct block_list *bl, unsigned char per_hp, unsigned char per_sp) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_revive_pre ) {
int (*preHookFunc) (struct block_list *bl, unsigned char *per_hp, unsigned char *per_sp);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_revive_pre; hIndex++ ) {
@@ -59790,8 +58694,7 @@ const char* HP_status_get_name(struct block_list *bl) {
}
int HP_status_get_class(struct block_list *bl) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_get_class_pre ) {
int (*preHookFunc) (struct block_list *bl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_class_pre; hIndex++ ) {
@@ -59817,8 +58720,7 @@ int HP_status_get_class(struct block_list *bl) {
}
int HP_status_get_lv(struct block_list *bl) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_get_lv_pre ) {
int (*preHookFunc) (struct block_list *bl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_lv_pre; hIndex++ ) {
@@ -59844,8 +58746,7 @@ int HP_status_get_lv(struct block_list *bl) {
}
defType HP_status_get_def(struct block_list *bl) {
int hIndex = 0;
- defType retVal___;
- memset(&retVal___, '\0', sizeof(defType));
+ defType retVal___ = 0;
if( HPMHooks.count.HP_status_get_def_pre ) {
defType (*preHookFunc) (struct block_list *bl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_def_pre; hIndex++ ) {
@@ -59871,8 +58772,7 @@ defType HP_status_get_def(struct block_list *bl) {
}
unsigned short HP_status_get_speed(struct block_list *bl) {
int hIndex = 0;
- unsigned short retVal___;
- memset(&retVal___, '\0', sizeof(unsigned short));
+ unsigned short retVal___ = 0;
if( HPMHooks.count.HP_status_get_speed_pre ) {
unsigned short (*preHookFunc) (struct block_list *bl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_speed_pre; hIndex++ ) {
@@ -59898,8 +58798,7 @@ unsigned short HP_status_get_speed(struct block_list *bl) {
}
unsigned char HP_status_calc_attack_element(struct block_list *bl, struct status_change *sc, int element) {
int hIndex = 0;
- unsigned char retVal___;
- memset(&retVal___, '\0', sizeof(unsigned char));
+ unsigned char retVal___ = 0;
if( HPMHooks.count.HP_status_calc_attack_element_pre ) {
unsigned char (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *element);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_attack_element_pre; hIndex++ ) {
@@ -59925,8 +58824,7 @@ unsigned char HP_status_calc_attack_element(struct block_list *bl, struct status
}
int HP_status_get_party_id(struct block_list *bl) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_get_party_id_pre ) {
int (*preHookFunc) (struct block_list *bl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_party_id_pre; hIndex++ ) {
@@ -59952,8 +58850,7 @@ int HP_status_get_party_id(struct block_list *bl) {
}
int HP_status_get_guild_id(struct block_list *bl) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_get_guild_id_pre ) {
int (*preHookFunc) (struct block_list *bl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_guild_id_pre; hIndex++ ) {
@@ -59979,8 +58876,7 @@ int HP_status_get_guild_id(struct block_list *bl) {
}
int HP_status_get_emblem_id(struct block_list *bl) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_get_emblem_id_pre ) {
int (*preHookFunc) (struct block_list *bl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_emblem_id_pre; hIndex++ ) {
@@ -60006,8 +58902,7 @@ int HP_status_get_emblem_id(struct block_list *bl) {
}
int HP_status_get_mexp(struct block_list *bl) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_get_mexp_pre ) {
int (*preHookFunc) (struct block_list *bl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_mexp_pre; hIndex++ ) {
@@ -60033,8 +58928,7 @@ int HP_status_get_mexp(struct block_list *bl) {
}
int HP_status_get_race2(struct block_list *bl) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_get_race2_pre ) {
int (*preHookFunc) (struct block_list *bl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_race2_pre; hIndex++ ) {
@@ -60162,8 +59056,7 @@ struct status_change* HP_status_get_sc(struct block_list *bl) {
}
int HP_status_isdead(struct block_list *bl) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_isdead_pre ) {
int (*preHookFunc) (struct block_list *bl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_isdead_pre; hIndex++ ) {
@@ -60189,8 +59082,7 @@ int HP_status_isdead(struct block_list *bl) {
}
int HP_status_isimmune(struct block_list *bl) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_isimmune_pre ) {
int (*preHookFunc) (struct block_list *bl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_isimmune_pre; hIndex++ ) {
@@ -60216,8 +59108,7 @@ int HP_status_isimmune(struct block_list *bl) {
}
int HP_status_get_sc_def(struct block_list *bl, enum sc_type type, int rate, int tick, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_get_sc_def_pre ) {
int (*preHookFunc) (struct block_list *bl, enum sc_type *type, int *rate, int *tick, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_sc_def_pre; hIndex++ ) {
@@ -60243,8 +59134,7 @@ int HP_status_get_sc_def(struct block_list *bl, enum sc_type type, int rate, int
}
int HP_status_change_start(struct block_list *bl, enum sc_type type, int rate, int val1, int val2, int val3, int val4, int tick, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_change_start_pre ) {
int (*preHookFunc) (struct block_list *bl, enum sc_type *type, int *rate, int *val1, int *val2, int *val3, int *val4, int *tick, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_change_start_pre; hIndex++ ) {
@@ -60270,8 +59160,7 @@ int HP_status_change_start(struct block_list *bl, enum sc_type type, int rate, i
}
int HP_status_change_end_(struct block_list *bl, enum sc_type type, int tid, const char *file, int line) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_change_end__pre ) {
int (*preHookFunc) (struct block_list *bl, enum sc_type *type, int *tid, const char *file, int *line);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_change_end__pre; hIndex++ ) {
@@ -60297,8 +59186,7 @@ int HP_status_change_end_(struct block_list *bl, enum sc_type type, int tid, con
}
int HP_status_kaahi_heal_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_kaahi_heal_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_kaahi_heal_timer_pre; hIndex++ ) {
@@ -60324,8 +59212,7 @@ int HP_status_kaahi_heal_timer(int tid, unsigned int tick, int id, intptr_t data
}
int HP_status_change_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_change_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_change_timer_pre; hIndex++ ) {
@@ -60351,8 +59238,7 @@ int HP_status_change_timer(int tid, unsigned int tick, int id, intptr_t data) {
}
int HP_status_change_timer_sub(struct block_list *bl, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_change_timer_sub_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_change_timer_sub_pre; hIndex++ ) {
@@ -60384,8 +59270,7 @@ int HP_status_change_timer_sub(struct block_list *bl, va_list ap) {
}
int HP_status_change_clear(struct block_list *bl, int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_change_clear_pre ) {
int (*preHookFunc) (struct block_list *bl, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_change_clear_pre; hIndex++ ) {
@@ -60411,8 +59296,7 @@ int HP_status_change_clear(struct block_list *bl, int type) {
}
int HP_status_change_clear_buffs(struct block_list *bl, int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_change_clear_buffs_pre ) {
int (*preHookFunc) (struct block_list *bl, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_change_clear_buffs_pre; hIndex++ ) {
@@ -60463,8 +59347,7 @@ void HP_status_calc_bl_(struct block_list *bl, enum scb_flag flag, bool first) {
}
int HP_status_calc_mob_(struct mob_data *md, bool first) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_calc_mob__pre ) {
int (*preHookFunc) (struct mob_data *md, bool *first);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_mob__pre; hIndex++ ) {
@@ -60490,8 +59373,7 @@ int HP_status_calc_mob_(struct mob_data *md, bool first) {
}
int HP_status_calc_pet_(struct pet_data *pd, bool first) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_calc_pet__pre ) {
int (*preHookFunc) (struct pet_data *pd, bool *first);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_pet__pre; hIndex++ ) {
@@ -60517,8 +59399,7 @@ int HP_status_calc_pet_(struct pet_data *pd, bool first) {
}
int HP_status_calc_pc_(struct map_session_data *sd, bool first) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_calc_pc__pre ) {
int (*preHookFunc) (struct map_session_data *sd, bool *first);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_pc__pre; hIndex++ ) {
@@ -60544,8 +59425,7 @@ int HP_status_calc_pc_(struct map_session_data *sd, bool first) {
}
int HP_status_calc_homunculus_(struct homun_data *hd, bool first) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_calc_homunculus__pre ) {
int (*preHookFunc) (struct homun_data *hd, bool *first);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_homunculus__pre; hIndex++ ) {
@@ -60571,8 +59451,7 @@ int HP_status_calc_homunculus_(struct homun_data *hd, bool first) {
}
int HP_status_calc_mercenary_(struct mercenary_data *md, bool first) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_calc_mercenary__pre ) {
int (*preHookFunc) (struct mercenary_data *md, bool *first);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_mercenary__pre; hIndex++ ) {
@@ -60598,8 +59477,7 @@ int HP_status_calc_mercenary_(struct mercenary_data *md, bool first) {
}
int HP_status_calc_elemental_(struct elemental_data *ed, bool first) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_calc_elemental__pre ) {
int (*preHookFunc) (struct elemental_data *ed, bool *first);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_elemental__pre; hIndex++ ) {
@@ -60700,8 +59578,7 @@ void HP_status_calc_regen_rate(struct block_list *bl, struct regen_data *regen,
}
int HP_status_check_skilluse(struct block_list *src, struct block_list *target, uint16 skill_id, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_check_skilluse_pre ) {
int (*preHookFunc) (struct block_list *src, struct block_list *target, uint16 *skill_id, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_check_skilluse_pre; hIndex++ ) {
@@ -60727,8 +59604,7 @@ int HP_status_check_skilluse(struct block_list *src, struct block_list *target,
}
int HP_status_check_visibility(struct block_list *src, struct block_list *target) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_check_visibility_pre ) {
int (*preHookFunc) (struct block_list *src, struct block_list *target);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_check_visibility_pre; hIndex++ ) {
@@ -60754,8 +59630,7 @@ int HP_status_check_visibility(struct block_list *src, struct block_list *target
}
int HP_status_change_spread(struct block_list *src, struct block_list *bl) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_change_spread_pre ) {
int (*preHookFunc) (struct block_list *src, struct block_list *bl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_change_spread_pre; hIndex++ ) {
@@ -60781,8 +59656,7 @@ int HP_status_change_spread(struct block_list *src, struct block_list *bl) {
}
defType HP_status_calc_def(struct block_list *bl, struct status_change *sc, int def, bool viewable) {
int hIndex = 0;
- defType retVal___;
- memset(&retVal___, '\0', sizeof(defType));
+ defType retVal___ = 0;
if( HPMHooks.count.HP_status_calc_def_pre ) {
defType (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *def, bool *viewable);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_def_pre; hIndex++ ) {
@@ -60808,8 +59682,7 @@ defType HP_status_calc_def(struct block_list *bl, struct status_change *sc, int
}
short HP_status_calc_def2(struct block_list *bl, struct status_change *sc, int def2, bool viewable) {
int hIndex = 0;
- short retVal___;
- memset(&retVal___, '\0', sizeof(short));
+ short retVal___ = 0;
if( HPMHooks.count.HP_status_calc_def2_pre ) {
short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *def2, bool *viewable);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_def2_pre; hIndex++ ) {
@@ -60835,8 +59708,7 @@ short HP_status_calc_def2(struct block_list *bl, struct status_change *sc, int d
}
defType HP_status_calc_mdef(struct block_list *bl, struct status_change *sc, int mdef, bool viewable) {
int hIndex = 0;
- defType retVal___;
- memset(&retVal___, '\0', sizeof(defType));
+ defType retVal___ = 0;
if( HPMHooks.count.HP_status_calc_mdef_pre ) {
defType (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *mdef, bool *viewable);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_mdef_pre; hIndex++ ) {
@@ -60862,8 +59734,7 @@ defType HP_status_calc_mdef(struct block_list *bl, struct status_change *sc, int
}
short HP_status_calc_mdef2(struct block_list *bl, struct status_change *sc, int mdef2, bool viewable) {
int hIndex = 0;
- short retVal___;
- memset(&retVal___, '\0', sizeof(short));
+ short retVal___ = 0;
if( HPMHooks.count.HP_status_calc_mdef2_pre ) {
short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *mdef2, bool *viewable);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_mdef2_pre; hIndex++ ) {
@@ -60889,8 +59760,7 @@ short HP_status_calc_mdef2(struct block_list *bl, struct status_change *sc, int
}
unsigned short HP_status_calc_batk(struct block_list *bl, struct status_change *sc, int batk, bool viewable) {
int hIndex = 0;
- unsigned short retVal___;
- memset(&retVal___, '\0', sizeof(unsigned short));
+ unsigned short retVal___ = 0;
if( HPMHooks.count.HP_status_calc_batk_pre ) {
unsigned short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *batk, bool *viewable);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_batk_pre; hIndex++ ) {
@@ -60916,8 +59786,7 @@ unsigned short HP_status_calc_batk(struct block_list *bl, struct status_change *
}
unsigned short HP_status_base_matk(const struct status_data *st, int level) {
int hIndex = 0;
- unsigned short retVal___;
- memset(&retVal___, '\0', sizeof(unsigned short));
+ unsigned short retVal___ = 0;
if( HPMHooks.count.HP_status_base_matk_pre ) {
unsigned short (*preHookFunc) (const struct status_data *st, int *level);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_base_matk_pre; hIndex++ ) {
@@ -60943,8 +59812,7 @@ unsigned short HP_status_base_matk(const struct status_data *st, int level) {
}
int HP_status_get_weapon_atk(struct block_list *src, struct weapon_atk *watk, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_get_weapon_atk_pre ) {
int (*preHookFunc) (struct block_list *src, struct weapon_atk *watk, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_weapon_atk_pre; hIndex++ ) {
@@ -60970,8 +59838,7 @@ int HP_status_get_weapon_atk(struct block_list *src, struct weapon_atk *watk, in
}
int HP_status_get_total_mdef(struct block_list *src) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_get_total_mdef_pre ) {
int (*preHookFunc) (struct block_list *src);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_total_mdef_pre; hIndex++ ) {
@@ -60997,8 +59864,7 @@ int HP_status_get_total_mdef(struct block_list *src) {
}
int HP_status_get_total_def(struct block_list *src) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_get_total_def_pre ) {
int (*preHookFunc) (struct block_list *src);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_total_def_pre; hIndex++ ) {
@@ -61024,8 +59890,7 @@ int HP_status_get_total_def(struct block_list *src) {
}
int HP_status_get_matk(struct block_list *src, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_get_matk_pre ) {
int (*preHookFunc) (struct block_list *src, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_get_matk_pre; hIndex++ ) {
@@ -61051,8 +59916,7 @@ int HP_status_get_matk(struct block_list *src, int flag) {
}
int HP_status_readdb(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_readdb_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_readdb_pre; hIndex++ ) {
@@ -61128,8 +59992,7 @@ void HP_status_initDummyData(void) {
}
int HP_status_base_amotion_pc(struct map_session_data *sd, struct status_data *st) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_base_amotion_pc_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct status_data *st);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_base_amotion_pc_pre; hIndex++ ) {
@@ -61155,8 +60018,7 @@ int HP_status_base_amotion_pc(struct map_session_data *sd, struct status_data *s
}
unsigned short HP_status_base_atk(const struct block_list *bl, const struct status_data *st) {
int hIndex = 0;
- unsigned short retVal___;
- memset(&retVal___, '\0', sizeof(unsigned short));
+ unsigned short retVal___ = 0;
if( HPMHooks.count.HP_status_base_atk_pre ) {
unsigned short (*preHookFunc) (const struct block_list *bl, const struct status_data *st);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_base_atk_pre; hIndex++ ) {
@@ -61207,8 +60069,7 @@ void HP_status_calc_sigma(void) {
}
unsigned int HP_status_base_pc_maxhp(struct map_session_data *sd, struct status_data *st) {
int hIndex = 0;
- unsigned int retVal___;
- memset(&retVal___, '\0', sizeof(unsigned int));
+ unsigned int retVal___ = 0;
if( HPMHooks.count.HP_status_base_pc_maxhp_pre ) {
unsigned int (*preHookFunc) (struct map_session_data *sd, struct status_data *st);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_base_pc_maxhp_pre; hIndex++ ) {
@@ -61234,8 +60095,7 @@ unsigned int HP_status_base_pc_maxhp(struct map_session_data *sd, struct status_
}
unsigned int HP_status_base_pc_maxsp(struct map_session_data *sd, struct status_data *st) {
int hIndex = 0;
- unsigned int retVal___;
- memset(&retVal___, '\0', sizeof(unsigned int));
+ unsigned int retVal___ = 0;
if( HPMHooks.count.HP_status_base_pc_maxsp_pre ) {
unsigned int (*preHookFunc) (struct map_session_data *sd, struct status_data *st);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_base_pc_maxsp_pre; hIndex++ ) {
@@ -61261,8 +60121,7 @@ unsigned int HP_status_base_pc_maxsp(struct map_session_data *sd, struct status_
}
int HP_status_calc_npc_(struct npc_data *nd, bool first) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_calc_npc__pre ) {
int (*preHookFunc) (struct npc_data *nd, bool *first);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_npc__pre; hIndex++ ) {
@@ -61288,8 +60147,7 @@ int HP_status_calc_npc_(struct npc_data *nd, bool first) {
}
unsigned short HP_status_calc_str(struct block_list *bl, struct status_change *sc, int str) {
int hIndex = 0;
- unsigned short retVal___;
- memset(&retVal___, '\0', sizeof(unsigned short));
+ unsigned short retVal___ = 0;
if( HPMHooks.count.HP_status_calc_str_pre ) {
unsigned short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *str);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_str_pre; hIndex++ ) {
@@ -61315,8 +60173,7 @@ unsigned short HP_status_calc_str(struct block_list *bl, struct status_change *s
}
unsigned short HP_status_calc_agi(struct block_list *bl, struct status_change *sc, int agi) {
int hIndex = 0;
- unsigned short retVal___;
- memset(&retVal___, '\0', sizeof(unsigned short));
+ unsigned short retVal___ = 0;
if( HPMHooks.count.HP_status_calc_agi_pre ) {
unsigned short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *agi);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_agi_pre; hIndex++ ) {
@@ -61342,8 +60199,7 @@ unsigned short HP_status_calc_agi(struct block_list *bl, struct status_change *s
}
unsigned short HP_status_calc_vit(struct block_list *bl, struct status_change *sc, int vit) {
int hIndex = 0;
- unsigned short retVal___;
- memset(&retVal___, '\0', sizeof(unsigned short));
+ unsigned short retVal___ = 0;
if( HPMHooks.count.HP_status_calc_vit_pre ) {
unsigned short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *vit);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_vit_pre; hIndex++ ) {
@@ -61369,8 +60225,7 @@ unsigned short HP_status_calc_vit(struct block_list *bl, struct status_change *s
}
unsigned short HP_status_calc_int(struct block_list *bl, struct status_change *sc, int int_) {
int hIndex = 0;
- unsigned short retVal___;
- memset(&retVal___, '\0', sizeof(unsigned short));
+ unsigned short retVal___ = 0;
if( HPMHooks.count.HP_status_calc_int_pre ) {
unsigned short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *int_);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_int_pre; hIndex++ ) {
@@ -61396,8 +60251,7 @@ unsigned short HP_status_calc_int(struct block_list *bl, struct status_change *s
}
unsigned short HP_status_calc_dex(struct block_list *bl, struct status_change *sc, int dex) {
int hIndex = 0;
- unsigned short retVal___;
- memset(&retVal___, '\0', sizeof(unsigned short));
+ unsigned short retVal___ = 0;
if( HPMHooks.count.HP_status_calc_dex_pre ) {
unsigned short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *dex);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_dex_pre; hIndex++ ) {
@@ -61423,8 +60277,7 @@ unsigned short HP_status_calc_dex(struct block_list *bl, struct status_change *s
}
unsigned short HP_status_calc_luk(struct block_list *bl, struct status_change *sc, int luk) {
int hIndex = 0;
- unsigned short retVal___;
- memset(&retVal___, '\0', sizeof(unsigned short));
+ unsigned short retVal___ = 0;
if( HPMHooks.count.HP_status_calc_luk_pre ) {
unsigned short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *luk);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_luk_pre; hIndex++ ) {
@@ -61450,8 +60303,7 @@ unsigned short HP_status_calc_luk(struct block_list *bl, struct status_change *s
}
unsigned short HP_status_calc_watk(struct block_list *bl, struct status_change *sc, int watk, bool viewable) {
int hIndex = 0;
- unsigned short retVal___;
- memset(&retVal___, '\0', sizeof(unsigned short));
+ unsigned short retVal___ = 0;
if( HPMHooks.count.HP_status_calc_watk_pre ) {
unsigned short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *watk, bool *viewable);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_watk_pre; hIndex++ ) {
@@ -61477,8 +60329,7 @@ unsigned short HP_status_calc_watk(struct block_list *bl, struct status_change *
}
unsigned short HP_status_calc_matk(struct block_list *bl, struct status_change *sc, int matk, bool viewable) {
int hIndex = 0;
- unsigned short retVal___;
- memset(&retVal___, '\0', sizeof(unsigned short));
+ unsigned short retVal___ = 0;
if( HPMHooks.count.HP_status_calc_matk_pre ) {
unsigned short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *matk, bool *viewable);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_matk_pre; hIndex++ ) {
@@ -61504,8 +60355,7 @@ unsigned short HP_status_calc_matk(struct block_list *bl, struct status_change *
}
signed short HP_status_calc_hit(struct block_list *bl, struct status_change *sc, int hit, bool viewable) {
int hIndex = 0;
- signed short retVal___;
- memset(&retVal___, '\0', sizeof(signed short));
+ signed short retVal___ = 0;
if( HPMHooks.count.HP_status_calc_hit_pre ) {
signed short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *hit, bool *viewable);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_hit_pre; hIndex++ ) {
@@ -61531,8 +60381,7 @@ signed short HP_status_calc_hit(struct block_list *bl, struct status_change *sc,
}
signed short HP_status_calc_critical(struct block_list *bl, struct status_change *sc, int critical, bool viewable) {
int hIndex = 0;
- signed short retVal___;
- memset(&retVal___, '\0', sizeof(signed short));
+ signed short retVal___ = 0;
if( HPMHooks.count.HP_status_calc_critical_pre ) {
signed short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *critical, bool *viewable);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_critical_pre; hIndex++ ) {
@@ -61558,8 +60407,7 @@ signed short HP_status_calc_critical(struct block_list *bl, struct status_change
}
signed short HP_status_calc_flee(struct block_list *bl, struct status_change *sc, int flee, bool viewable) {
int hIndex = 0;
- signed short retVal___;
- memset(&retVal___, '\0', sizeof(signed short));
+ signed short retVal___ = 0;
if( HPMHooks.count.HP_status_calc_flee_pre ) {
signed short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *flee, bool *viewable);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_flee_pre; hIndex++ ) {
@@ -61585,8 +60433,7 @@ signed short HP_status_calc_flee(struct block_list *bl, struct status_change *sc
}
signed short HP_status_calc_flee2(struct block_list *bl, struct status_change *sc, int flee2, bool viewable) {
int hIndex = 0;
- signed short retVal___;
- memset(&retVal___, '\0', sizeof(signed short));
+ signed short retVal___ = 0;
if( HPMHooks.count.HP_status_calc_flee2_pre ) {
signed short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *flee2, bool *viewable);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_flee2_pre; hIndex++ ) {
@@ -61612,8 +60459,7 @@ signed short HP_status_calc_flee2(struct block_list *bl, struct status_change *s
}
unsigned short HP_status_calc_speed(struct block_list *bl, struct status_change *sc, int speed) {
int hIndex = 0;
- unsigned short retVal___;
- memset(&retVal___, '\0', sizeof(unsigned short));
+ unsigned short retVal___ = 0;
if( HPMHooks.count.HP_status_calc_speed_pre ) {
unsigned short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *speed);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_speed_pre; hIndex++ ) {
@@ -61639,8 +60485,7 @@ unsigned short HP_status_calc_speed(struct block_list *bl, struct status_change
}
short HP_status_calc_aspd_rate(struct block_list *bl, struct status_change *sc, int aspd_rate) {
int hIndex = 0;
- short retVal___;
- memset(&retVal___, '\0', sizeof(short));
+ short retVal___ = 0;
if( HPMHooks.count.HP_status_calc_aspd_rate_pre ) {
short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *aspd_rate);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_aspd_rate_pre; hIndex++ ) {
@@ -61666,8 +60511,7 @@ short HP_status_calc_aspd_rate(struct block_list *bl, struct status_change *sc,
}
unsigned short HP_status_calc_dmotion(struct block_list *bl, struct status_change *sc, int dmotion) {
int hIndex = 0;
- unsigned short retVal___;
- memset(&retVal___, '\0', sizeof(unsigned short));
+ unsigned short retVal___ = 0;
if( HPMHooks.count.HP_status_calc_dmotion_pre ) {
unsigned short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *dmotion);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_dmotion_pre; hIndex++ ) {
@@ -61693,8 +60537,7 @@ unsigned short HP_status_calc_dmotion(struct block_list *bl, struct status_chang
}
short HP_status_calc_aspd(struct block_list *bl, struct status_change *sc, short flag) {
int hIndex = 0;
- short retVal___;
- memset(&retVal___, '\0', sizeof(short));
+ short retVal___ = 0;
if( HPMHooks.count.HP_status_calc_aspd_pre ) {
short (*preHookFunc) (struct block_list *bl, struct status_change *sc, short *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_aspd_pre; hIndex++ ) {
@@ -61720,8 +60563,7 @@ short HP_status_calc_aspd(struct block_list *bl, struct status_change *sc, short
}
short HP_status_calc_fix_aspd(struct block_list *bl, struct status_change *sc, int aspd) {
int hIndex = 0;
- short retVal___;
- memset(&retVal___, '\0', sizeof(short));
+ short retVal___ = 0;
if( HPMHooks.count.HP_status_calc_fix_aspd_pre ) {
short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *aspd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_fix_aspd_pre; hIndex++ ) {
@@ -61747,8 +60589,7 @@ short HP_status_calc_fix_aspd(struct block_list *bl, struct status_change *sc, i
}
unsigned int HP_status_calc_maxhp(struct block_list *bl, struct status_change *sc, uint64 maxhp) {
int hIndex = 0;
- unsigned int retVal___;
- memset(&retVal___, '\0', sizeof(unsigned int));
+ unsigned int retVal___ = 0;
if( HPMHooks.count.HP_status_calc_maxhp_pre ) {
unsigned int (*preHookFunc) (struct block_list *bl, struct status_change *sc, uint64 *maxhp);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_maxhp_pre; hIndex++ ) {
@@ -61774,8 +60615,7 @@ unsigned int HP_status_calc_maxhp(struct block_list *bl, struct status_change *s
}
unsigned int HP_status_calc_maxsp(struct block_list *bl, struct status_change *sc, unsigned int maxsp) {
int hIndex = 0;
- unsigned int retVal___;
- memset(&retVal___, '\0', sizeof(unsigned int));
+ unsigned int retVal___ = 0;
if( HPMHooks.count.HP_status_calc_maxsp_pre ) {
unsigned int (*preHookFunc) (struct block_list *bl, struct status_change *sc, unsigned int *maxsp);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_maxsp_pre; hIndex++ ) {
@@ -61801,8 +60641,7 @@ unsigned int HP_status_calc_maxsp(struct block_list *bl, struct status_change *s
}
unsigned char HP_status_calc_element(struct block_list *bl, struct status_change *sc, int element) {
int hIndex = 0;
- unsigned char retVal___;
- memset(&retVal___, '\0', sizeof(unsigned char));
+ unsigned char retVal___ = 0;
if( HPMHooks.count.HP_status_calc_element_pre ) {
unsigned char (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *element);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_element_pre; hIndex++ ) {
@@ -61828,8 +60667,7 @@ unsigned char HP_status_calc_element(struct block_list *bl, struct status_change
}
unsigned char HP_status_calc_element_lv(struct block_list *bl, struct status_change *sc, int lv) {
int hIndex = 0;
- unsigned char retVal___;
- memset(&retVal___, '\0', sizeof(unsigned char));
+ unsigned char retVal___ = 0;
if( HPMHooks.count.HP_status_calc_element_lv_pre ) {
unsigned char (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_element_lv_pre; hIndex++ ) {
@@ -61855,8 +60693,7 @@ unsigned char HP_status_calc_element_lv(struct block_list *bl, struct status_cha
}
unsigned short HP_status_calc_mode(struct block_list *bl, struct status_change *sc, int mode) {
int hIndex = 0;
- unsigned short retVal___;
- memset(&retVal___, '\0', sizeof(unsigned short));
+ unsigned short retVal___ = 0;
if( HPMHooks.count.HP_status_calc_mode_pre ) {
unsigned short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *mode);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_mode_pre; hIndex++ ) {
@@ -61882,8 +60719,7 @@ unsigned short HP_status_calc_mode(struct block_list *bl, struct status_change *
}
unsigned short HP_status_calc_ematk(struct block_list *bl, struct status_change *sc, int matk) {
int hIndex = 0;
- unsigned short retVal___;
- memset(&retVal___, '\0', sizeof(unsigned short));
+ unsigned short retVal___ = 0;
if( HPMHooks.count.HP_status_calc_ematk_pre ) {
unsigned short (*preHookFunc) (struct block_list *bl, struct status_change *sc, int *matk);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_calc_ematk_pre; hIndex++ ) {
@@ -61984,8 +60820,7 @@ void HP_status_display_remove(struct map_session_data *sd, enum sc_type type) {
}
int HP_status_natural_heal(struct block_list *bl, va_list args) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_natural_heal_pre ) {
int (*preHookFunc) (struct block_list *bl, va_list args);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_natural_heal_pre; hIndex++ ) {
@@ -62017,8 +60852,7 @@ int HP_status_natural_heal(struct block_list *bl, va_list args) {
}
int HP_status_natural_heal_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_status_natural_heal_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_natural_heal_timer_pre; hIndex++ ) {
@@ -62044,8 +60878,7 @@ int HP_status_natural_heal_timer(int tid, unsigned int tick, int id, intptr_t da
}
bool HP_status_readdb_job1(char *fields[], int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_status_readdb_job1_pre ) {
bool (*preHookFunc) (char *fields[], int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_readdb_job1_pre; hIndex++ ) {
@@ -62071,8 +60904,7 @@ bool HP_status_readdb_job1(char *fields[], int columns, int current) {
}
bool HP_status_readdb_job2(char *fields[], int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_status_readdb_job2_pre ) {
bool (*preHookFunc) (char *fields[], int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_readdb_job2_pre; hIndex++ ) {
@@ -62098,8 +60930,7 @@ bool HP_status_readdb_job2(char *fields[], int columns, int current) {
}
bool HP_status_readdb_sizefix(char *fields[], int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_status_readdb_sizefix_pre ) {
bool (*preHookFunc) (char *fields[], int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_readdb_sizefix_pre; hIndex++ ) {
@@ -62125,8 +60956,7 @@ bool HP_status_readdb_sizefix(char *fields[], int columns, int current) {
}
bool HP_status_readdb_refine(char *fields[], int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_status_readdb_refine_pre ) {
bool (*preHookFunc) (char *fields[], int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_readdb_refine_pre; hIndex++ ) {
@@ -62152,8 +60982,7 @@ bool HP_status_readdb_refine(char *fields[], int columns, int current) {
}
bool HP_status_readdb_scconfig(char *fields[], int columns, int current) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_status_readdb_scconfig_pre ) {
bool (*preHookFunc) (char *fields[], int *columns, int *current);
for(hIndex = 0; hIndex < HPMHooks.count.HP_status_readdb_scconfig_pre; hIndex++ ) {
@@ -62205,8 +61034,7 @@ void HP_storage_reconnect(void) {
}
int HP_storage_delitem(struct map_session_data *sd, int n, int amount) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_storage_delitem_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *n, int *amount);
for(hIndex = 0; hIndex < HPMHooks.count.HP_storage_delitem_pre; hIndex++ ) {
@@ -62232,8 +61060,7 @@ int HP_storage_delitem(struct map_session_data *sd, int n, int amount) {
}
int HP_storage_open(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_storage_open_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_storage_open_pre; hIndex++ ) {
@@ -62259,8 +61086,7 @@ int HP_storage_open(struct map_session_data *sd) {
}
int HP_storage_add(struct map_session_data *sd, int index, int amount) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_storage_add_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *index, int *amount);
for(hIndex = 0; hIndex < HPMHooks.count.HP_storage_add_pre; hIndex++ ) {
@@ -62286,8 +61112,7 @@ int HP_storage_add(struct map_session_data *sd, int index, int amount) {
}
int HP_storage_get(struct map_session_data *sd, int index, int amount) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_storage_get_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *index, int *amount);
for(hIndex = 0; hIndex < HPMHooks.count.HP_storage_get_pre; hIndex++ ) {
@@ -62313,8 +61138,7 @@ int HP_storage_get(struct map_session_data *sd, int index, int amount) {
}
int HP_storage_additem(struct map_session_data *sd, struct item *item_data, int amount) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_storage_additem_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct item *item_data, int *amount);
for(hIndex = 0; hIndex < HPMHooks.count.HP_storage_additem_pre; hIndex++ ) {
@@ -62340,8 +61164,7 @@ int HP_storage_additem(struct map_session_data *sd, struct item *item_data, int
}
int HP_storage_addfromcart(struct map_session_data *sd, int index, int amount) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_storage_addfromcart_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *index, int *amount);
for(hIndex = 0; hIndex < HPMHooks.count.HP_storage_addfromcart_pre; hIndex++ ) {
@@ -62367,8 +61190,7 @@ int HP_storage_addfromcart(struct map_session_data *sd, int index, int amount) {
}
int HP_storage_gettocart(struct map_session_data *sd, int index, int amount) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_storage_gettocart_pre ) {
int (*preHookFunc) (struct map_session_data *sd, int *index, int *amount);
for(hIndex = 0; hIndex < HPMHooks.count.HP_storage_gettocart_pre; hIndex++ ) {
@@ -62444,8 +61266,7 @@ void HP_storage_pc_quit(struct map_session_data *sd, int flag) {
}
int HP_storage_comp_item(const void *_i1, const void *_i2) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_storage_comp_item_pre ) {
int (*preHookFunc) (const void *_i1, const void *_i2);
for(hIndex = 0; hIndex < HPMHooks.count.HP_storage_comp_item_pre; hIndex++ ) {
@@ -62496,8 +61317,7 @@ void HP_storage_sortitem(struct item *items, unsigned int size) {
}
int HP_storage_reconnect_sub(DBKey key, DBData *data, va_list ap) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_storage_reconnect_sub_pre ) {
int (*preHookFunc) (DBKey *key, DBData *data, va_list ap);
for(hIndex = 0; hIndex < HPMHooks.count.HP_storage_reconnect_sub_pre; hIndex++ ) {
@@ -62580,8 +61400,7 @@ void HP_trade_ack(struct map_session_data *sd, int type) {
}
int HP_trade_check_impossible(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_trade_check_impossible_pre ) {
int (*preHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_trade_check_impossible_pre; hIndex++ ) {
@@ -62607,8 +61426,7 @@ int HP_trade_check_impossible(struct map_session_data *sd) {
}
int HP_trade_check(struct map_session_data *sd, struct map_session_data *tsd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_trade_check_pre ) {
int (*preHookFunc) (struct map_session_data *sd, struct map_session_data *tsd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_trade_check_pre; hIndex++ ) {
@@ -62760,8 +61578,7 @@ void HP_trade_commit(struct map_session_data *sd) {
/* unit */
int HP_unit_init(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_init_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_init_pre; hIndex++ ) {
@@ -62787,8 +61604,7 @@ int HP_unit_init(void) {
}
int HP_unit_final(void) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_final_pre ) {
int (*preHookFunc) (void);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_final_pre; hIndex++ ) {
@@ -62866,8 +61682,7 @@ struct unit_data* HP_unit_bl2ud2(struct block_list *bl) {
}
int HP_unit_attack_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_attack_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_attack_timer_pre; hIndex++ ) {
@@ -62893,8 +61708,7 @@ int HP_unit_attack_timer(int tid, unsigned int tick, int id, intptr_t data) {
}
int HP_unit_walktoxy_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_walktoxy_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_walktoxy_timer_pre; hIndex++ ) {
@@ -62920,8 +61734,7 @@ int HP_unit_walktoxy_timer(int tid, unsigned int tick, int id, intptr_t data) {
}
int HP_unit_walktoxy_sub(struct block_list *bl) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_walktoxy_sub_pre ) {
int (*preHookFunc) (struct block_list *bl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_walktoxy_sub_pre; hIndex++ ) {
@@ -62947,8 +61760,7 @@ int HP_unit_walktoxy_sub(struct block_list *bl) {
}
int HP_unit_delay_walktoxy_timer(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_delay_walktoxy_timer_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_delay_walktoxy_timer_pre; hIndex++ ) {
@@ -62974,8 +61786,7 @@ int HP_unit_delay_walktoxy_timer(int tid, unsigned int tick, int id, intptr_t da
}
int HP_unit_walktoxy(struct block_list *bl, short x, short y, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_walktoxy_pre ) {
int (*preHookFunc) (struct block_list *bl, short *x, short *y, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_walktoxy_pre; hIndex++ ) {
@@ -63001,8 +61812,7 @@ int HP_unit_walktoxy(struct block_list *bl, short x, short y, int flag) {
}
int HP_unit_walktobl_sub(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_walktobl_sub_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_walktobl_sub_pre; hIndex++ ) {
@@ -63028,8 +61838,7 @@ int HP_unit_walktobl_sub(int tid, unsigned int tick, int id, intptr_t data) {
}
int HP_unit_walktobl(struct block_list *bl, struct block_list *tbl, int range, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_walktobl_pre ) {
int (*preHookFunc) (struct block_list *bl, struct block_list *tbl, int *range, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_walktobl_pre; hIndex++ ) {
@@ -63055,8 +61864,7 @@ int HP_unit_walktobl(struct block_list *bl, struct block_list *tbl, int range, i
}
int HP_unit_run(struct block_list *bl) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_run_pre ) {
int (*preHookFunc) (struct block_list *bl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_run_pre; hIndex++ ) {
@@ -63082,8 +61890,7 @@ int HP_unit_run(struct block_list *bl) {
}
int HP_unit_wugdash(struct block_list *bl, struct map_session_data *sd) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_wugdash_pre ) {
int (*preHookFunc) (struct block_list *bl, struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_wugdash_pre; hIndex++ ) {
@@ -63109,8 +61916,7 @@ int HP_unit_wugdash(struct block_list *bl, struct map_session_data *sd) {
}
int HP_unit_escape(struct block_list *bl, struct block_list *target, short dist) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_escape_pre ) {
int (*preHookFunc) (struct block_list *bl, struct block_list *target, short *dist);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_escape_pre; hIndex++ ) {
@@ -63136,8 +61942,7 @@ int HP_unit_escape(struct block_list *bl, struct block_list *target, short dist)
}
int HP_unit_movepos(struct block_list *bl, short dst_x, short dst_y, int easy, bool checkpath) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_movepos_pre ) {
int (*preHookFunc) (struct block_list *bl, short *dst_x, short *dst_y, int *easy, bool *checkpath);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_movepos_pre; hIndex++ ) {
@@ -63163,8 +61968,7 @@ int HP_unit_movepos(struct block_list *bl, short dst_x, short dst_y, int easy, b
}
int HP_unit_setdir(struct block_list *bl, unsigned char dir) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_setdir_pre ) {
int (*preHookFunc) (struct block_list *bl, unsigned char *dir);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_setdir_pre; hIndex++ ) {
@@ -63190,8 +61994,7 @@ int HP_unit_setdir(struct block_list *bl, unsigned char dir) {
}
uint8 HP_unit_getdir(struct block_list *bl) {
int hIndex = 0;
- uint8 retVal___;
- memset(&retVal___, '\0', sizeof(uint8));
+ uint8 retVal___ = 0;
if( HPMHooks.count.HP_unit_getdir_pre ) {
uint8 (*preHookFunc) (struct block_list *bl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_getdir_pre; hIndex++ ) {
@@ -63217,8 +62020,7 @@ uint8 HP_unit_getdir(struct block_list *bl) {
}
int HP_unit_blown(struct block_list *bl, int dx, int dy, int count, int flag) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_blown_pre ) {
int (*preHookFunc) (struct block_list *bl, int *dx, int *dy, int *count, int *flag);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_blown_pre; hIndex++ ) {
@@ -63244,8 +62046,7 @@ int HP_unit_blown(struct block_list *bl, int dx, int dy, int count, int flag) {
}
int HP_unit_warp(struct block_list *bl, short m, short x, short y, clr_type type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_warp_pre ) {
int (*preHookFunc) (struct block_list *bl, short *m, short *x, short *y, clr_type *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_warp_pre; hIndex++ ) {
@@ -63271,8 +62072,7 @@ int HP_unit_warp(struct block_list *bl, short m, short x, short y, clr_type type
}
int HP_unit_stop_walking(struct block_list *bl, int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_stop_walking_pre ) {
int (*preHookFunc) (struct block_list *bl, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_stop_walking_pre; hIndex++ ) {
@@ -63298,8 +62098,7 @@ int HP_unit_stop_walking(struct block_list *bl, int type) {
}
int HP_unit_skilluse_id(struct block_list *src, int target_id, uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_skilluse_id_pre ) {
int (*preHookFunc) (struct block_list *src, int *target_id, uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_skilluse_id_pre; hIndex++ ) {
@@ -63325,8 +62124,7 @@ int HP_unit_skilluse_id(struct block_list *src, int target_id, uint16 skill_id,
}
int HP_unit_is_walking(struct block_list *bl) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_is_walking_pre ) {
int (*preHookFunc) (struct block_list *bl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_is_walking_pre; hIndex++ ) {
@@ -63352,8 +62150,7 @@ int HP_unit_is_walking(struct block_list *bl) {
}
int HP_unit_can_move(struct block_list *bl) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_can_move_pre ) {
int (*preHookFunc) (struct block_list *bl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_can_move_pre; hIndex++ ) {
@@ -63379,8 +62176,7 @@ int HP_unit_can_move(struct block_list *bl) {
}
int HP_unit_resume_running(int tid, unsigned int tick, int id, intptr_t data) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_resume_running_pre ) {
int (*preHookFunc) (int *tid, unsigned int *tick, int *id, intptr_t *data);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_resume_running_pre; hIndex++ ) {
@@ -63406,8 +62202,7 @@ int HP_unit_resume_running(int tid, unsigned int tick, int id, intptr_t data) {
}
int HP_unit_set_walkdelay(struct block_list *bl, unsigned int tick, int delay, int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_set_walkdelay_pre ) {
int (*preHookFunc) (struct block_list *bl, unsigned int *tick, int *delay, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_set_walkdelay_pre; hIndex++ ) {
@@ -63433,8 +62228,7 @@ int HP_unit_set_walkdelay(struct block_list *bl, unsigned int tick, int delay, i
}
int HP_unit_skilluse_id2(struct block_list *src, int target_id, uint16 skill_id, uint16 skill_lv, int casttime, int castcancel) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_skilluse_id2_pre ) {
int (*preHookFunc) (struct block_list *src, int *target_id, uint16 *skill_id, uint16 *skill_lv, int *casttime, int *castcancel);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_skilluse_id2_pre; hIndex++ ) {
@@ -63460,8 +62254,7 @@ int HP_unit_skilluse_id2(struct block_list *src, int target_id, uint16 skill_id,
}
int HP_unit_skilluse_pos(struct block_list *src, short skill_x, short skill_y, uint16 skill_id, uint16 skill_lv) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_skilluse_pos_pre ) {
int (*preHookFunc) (struct block_list *src, short *skill_x, short *skill_y, uint16 *skill_id, uint16 *skill_lv);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_skilluse_pos_pre; hIndex++ ) {
@@ -63487,8 +62280,7 @@ int HP_unit_skilluse_pos(struct block_list *src, short skill_x, short skill_y, u
}
int HP_unit_skilluse_pos2(struct block_list *src, short skill_x, short skill_y, uint16 skill_id, uint16 skill_lv, int casttime, int castcancel) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_skilluse_pos2_pre ) {
int (*preHookFunc) (struct block_list *src, short *skill_x, short *skill_y, uint16 *skill_id, uint16 *skill_lv, int *casttime, int *castcancel);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_skilluse_pos2_pre; hIndex++ ) {
@@ -63514,8 +62306,7 @@ int HP_unit_skilluse_pos2(struct block_list *src, short skill_x, short skill_y,
}
int HP_unit_set_target(struct unit_data *ud, int target_id) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_set_target_pre ) {
int (*preHookFunc) (struct unit_data *ud, int *target_id);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_set_target_pre; hIndex++ ) {
@@ -63541,8 +62332,7 @@ int HP_unit_set_target(struct unit_data *ud, int target_id) {
}
int HP_unit_stop_attack(struct block_list *bl) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_stop_attack_pre ) {
int (*preHookFunc) (struct block_list *bl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_stop_attack_pre; hIndex++ ) {
@@ -63568,8 +62358,7 @@ int HP_unit_stop_attack(struct block_list *bl) {
}
int HP_unit_unattackable(struct block_list *bl) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_unattackable_pre ) {
int (*preHookFunc) (struct block_list *bl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_unattackable_pre; hIndex++ ) {
@@ -63595,8 +62384,7 @@ int HP_unit_unattackable(struct block_list *bl) {
}
int HP_unit_attack(struct block_list *src, int target_id, int continuous) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_attack_pre ) {
int (*preHookFunc) (struct block_list *src, int *target_id, int *continuous);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_attack_pre; hIndex++ ) {
@@ -63622,8 +62410,7 @@ int HP_unit_attack(struct block_list *src, int target_id, int continuous) {
}
int HP_unit_cancel_combo(struct block_list *bl) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_cancel_combo_pre ) {
int (*preHookFunc) (struct block_list *bl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_cancel_combo_pre; hIndex++ ) {
@@ -63649,8 +62436,7 @@ int HP_unit_cancel_combo(struct block_list *bl) {
}
bool HP_unit_can_reach_pos(struct block_list *bl, int x, int y, int easy) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_unit_can_reach_pos_pre ) {
bool (*preHookFunc) (struct block_list *bl, int *x, int *y, int *easy);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_can_reach_pos_pre; hIndex++ ) {
@@ -63676,8 +62462,7 @@ bool HP_unit_can_reach_pos(struct block_list *bl, int x, int y, int easy) {
}
bool HP_unit_can_reach_bl(struct block_list *bl, struct block_list *tbl, int range, int easy, short *x, short *y) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_unit_can_reach_bl_pre ) {
bool (*preHookFunc) (struct block_list *bl, struct block_list *tbl, int *range, int *easy, short *x, short *y);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_can_reach_bl_pre; hIndex++ ) {
@@ -63703,8 +62488,7 @@ bool HP_unit_can_reach_bl(struct block_list *bl, struct block_list *tbl, int ran
}
int HP_unit_calc_pos(struct block_list *bl, int tx, int ty, uint8 dir) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_calc_pos_pre ) {
int (*preHookFunc) (struct block_list *bl, int *tx, int *ty, uint8 *dir);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_calc_pos_pre; hIndex++ ) {
@@ -63730,8 +62514,7 @@ int HP_unit_calc_pos(struct block_list *bl, int tx, int ty, uint8 dir) {
}
int HP_unit_attack_timer_sub(struct block_list *src, int tid, unsigned int tick) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_attack_timer_sub_pre ) {
int (*preHookFunc) (struct block_list *src, int *tid, unsigned int *tick);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_attack_timer_sub_pre; hIndex++ ) {
@@ -63757,8 +62540,7 @@ int HP_unit_attack_timer_sub(struct block_list *src, int tid, unsigned int tick)
}
int HP_unit_skillcastcancel(struct block_list *bl, int type) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_skillcastcancel_pre ) {
int (*preHookFunc) (struct block_list *bl, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_skillcastcancel_pre; hIndex++ ) {
@@ -63809,8 +62591,7 @@ void HP_unit_dataset(struct block_list *bl) {
}
int HP_unit_counttargeted(struct block_list *bl) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_counttargeted_pre ) {
int (*preHookFunc) (struct block_list *bl);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_counttargeted_pre; hIndex++ ) {
@@ -63836,8 +62617,7 @@ int HP_unit_counttargeted(struct block_list *bl) {
}
int HP_unit_fixdamage(struct block_list *src, struct block_list *target, unsigned int tick, int sdelay, int ddelay, int64 damage, int div, int type, int64 damage2) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_fixdamage_pre ) {
int (*preHookFunc) (struct block_list *src, struct block_list *target, unsigned int *tick, int *sdelay, int *ddelay, int64 *damage, int *div, int *type, int64 *damage2);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_fixdamage_pre; hIndex++ ) {
@@ -63863,8 +62643,7 @@ int HP_unit_fixdamage(struct block_list *src, struct block_list *target, unsigne
}
int HP_unit_changeviewsize(struct block_list *bl, short size) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_changeviewsize_pre ) {
int (*preHookFunc) (struct block_list *bl, short *size);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_changeviewsize_pre; hIndex++ ) {
@@ -63890,8 +62669,7 @@ int HP_unit_changeviewsize(struct block_list *bl, short size) {
}
int HP_unit_remove_map(struct block_list *bl, clr_type clrtype, const char *file, int line, const char *func) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_remove_map_pre ) {
int (*preHookFunc) (struct block_list *bl, clr_type *clrtype, const char *file, int *line, const char *func);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_remove_map_pre; hIndex++ ) {
@@ -63967,8 +62745,7 @@ void HP_unit_free_pc(struct map_session_data *sd) {
}
int HP_unit_free(struct block_list *bl, clr_type clrtype) {
int hIndex = 0;
- int retVal___;
- memset(&retVal___, '\0', sizeof(int));
+ int retVal___ = 0;
if( HPMHooks.count.HP_unit_free_pre ) {
int (*preHookFunc) (struct block_list *bl, clr_type *clrtype);
for(hIndex = 0; hIndex < HPMHooks.count.HP_unit_free_pre; hIndex++ ) {
@@ -64145,8 +62922,7 @@ void HP_vending_purchase(struct map_session_data *sd, int aid, unsigned int uid,
}
bool HP_vending_search(struct map_session_data *sd, unsigned short nameid) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_vending_search_pre ) {
bool (*preHookFunc) (struct map_session_data *sd, unsigned short *nameid);
for(hIndex = 0; hIndex < HPMHooks.count.HP_vending_search_pre; hIndex++ ) {
@@ -64172,8 +62948,7 @@ bool HP_vending_search(struct map_session_data *sd, unsigned short nameid) {
}
bool HP_vending_searchall(struct map_session_data *sd, const struct s_search_store_search *s) {
int hIndex = 0;
- bool retVal___;
- memset(&retVal___, '\0', sizeof(bool));
+ bool retVal___ = false;
if( HPMHooks.count.HP_vending_searchall_pre ) {
bool (*preHookFunc) (struct map_session_data *sd, const struct s_search_store_search *s);
for(hIndex = 0; hIndex < HPMHooks.count.HP_vending_searchall_pre; hIndex++ ) {