diff options
author | Haru <haru@dotalux.com> | 2014-11-11 00:42:28 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2014-11-11 00:44:37 +0100 |
commit | 53b3577e9929fd304f55af622f5be2f4b32b19d4 (patch) | |
tree | a20a6278d461fa6bc5d500736c91376475d4fb6e | |
parent | cf39fdb21417361bdc5da2c755da68b18d4daa5e (diff) | |
download | hercules-53b3577e9929fd304f55af622f5be2f4b32b19d4.tar.gz hercules-53b3577e9929fd304f55af622f5be2f4b32b19d4.tar.bz2 hercules-53b3577e9929fd304f55af622f5be2f4b32b19d4.tar.xz hercules-53b3577e9929fd304f55af622f5be2f4b32b19d4.zip |
Corrected some uninitialized interface functions
- Detected through the just merged validation tool, special thanks to
Andrei Karas.
- Added validation tool to the Travis tests.
Signed-off-by: Haru <haru@dotalux.com>
-rw-r--r-- | .travis.yml | 3 | ||||
-rw-r--r-- | src/common/conf.c | 1 | ||||
-rw-r--r-- | src/map/pc.h | 3 |
3 files changed, 3 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml index a7f6a789f..fe43d9b70 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,8 @@ before_script: - ./travis.sh importdb ragnarok travis - mysql -u root -e "SET PASSWORD FOR 'travis'@'localhost' = PASSWORD('travis');" -script: +script: + - cd tools && ./validateinterfaces.py silent - ./travis.sh build $CONFIGURE_FLAGS - ./travis.sh test ragnarok travis travis diff --git a/src/common/conf.c b/src/common/conf.c index 46a034497..34d1cacbf 100644 --- a/src/common/conf.c +++ b/src/common/conf.c @@ -146,6 +146,7 @@ void libconfig_defaults(void) { /* */ libconfig->setting_set_int = config_setting_set_int; libconfig->setting_set_int64 = config_setting_set_int64; + libconfig->setting_set_float = config_setting_set_float; libconfig->setting_set_bool = config_setting_set_bool; libconfig->setting_set_string = config_setting_set_string; /* */ diff --git a/src/map/pc.h b/src/map/pc.h index e613feec5..b7a0b099c 100644 --- a/src/map/pc.h +++ b/src/map/pc.h @@ -780,9 +780,6 @@ struct pc_interface { struct map_session_data* (*get_dummy_sd) (void); int (*class2idx) (int class_); - //int (*getrefinebonus) (int lv,int type); FIXME: This function does not exist, nor it is ever called - bool (*can_give_items) (struct map_session_data *sd); - bool (*can_give_bound_items) (struct map_session_data *sd); bool (*can_talk) (struct map_session_data *sd); bool (*can_attack) ( struct map_session_data *sd, int target_id ); |