From abe64c3982a11c9834f2e16eaaf0dc940a903fdb Mon Sep 17 00:00:00 2001 From: Haru Date: Wed, 28 Jun 2017 23:48:19 +0200 Subject: 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 --- src/map/script.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/map/script.h') 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); -- cgit v1.2.3-60-g2f50