diff options
author | Haru <haru@dotalux.com> | 2017-06-28 23:48:19 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2017-06-28 23:48:19 +0200 |
commit | abe64c3982a11c9834f2e16eaaf0dc940a903fdb (patch) | |
tree | 1ddcfd8fe9582ee869e4544524209d4a51b875f5 /src/map/script.h | |
parent | 44afefff8c3b09d47f7d1a7a3d386e83f8b2dcbd (diff) | |
download | hercules-abe64c3982a11c9834f2e16eaaf0dc940a903fdb.tar.gz hercules-abe64c3982a11c9834f2e16eaaf0dc940a903fdb.tar.bz2 hercules-abe64c3982a11c9834f2e16eaaf0dc940a903fdb.tar.xz hercules-abe64c3982a11c9834f2e16eaaf0dc940a903fdb.zip |
Fix a compile error on ARM (Raspberry Pi 3)
According to the C specifications, va_list isn't necessarily a pointer
(it can be an array of pointers, or just about anything). As such, we
can't cast NULL to va_list.
Fixes #1793
Related to 5fd40de233d3a897284f771338cbf8e657182261
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/script.h')
-rw-r--r-- | src/map/script.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/script.h b/src/map/script.h index 6c9ad2b8c..189122230 100644 --- a/src/map/script.h +++ b/src/map/script.h @@ -854,8 +854,9 @@ struct script_interface { int (*db_free_code_sub) (union DBKey key, struct DBData *data, va_list ap); void (*add_autobonus) (const char *autobonus); int (*menu_countoptions) (const char *str, int max_count, int *total); + int (*buildin_recovery_sub) (struct map_session_data *sd); int (*buildin_recovery_pc_sub) (struct map_session_data *sd, va_list ap); - int (*buildin_recovery_sub) (struct block_list *bl, va_list ap); + int (*buildin_recovery_bl_sub) (struct block_list *bl, va_list ap); int (*buildin_areawarp_sub) (struct block_list *bl, va_list ap); int (*buildin_areapercentheal_sub) (struct block_list *bl, va_list ap); void (*buildin_delitem_delete) (struct map_session_data *sd, int idx, int *amount, bool delete_items); |