From 18f9f28313b26c159172fa05204adb6815f81161 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Wed, 2 May 2012 02:19:21 +0000 Subject: Fixed bugreport:5682 elemental_init was being called instead of final at inter.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16033 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/char/int_elemental.c | 4 ++-- src/char/int_elemental.h | 2 +- src/char/inter.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/char/int_elemental.c b/src/char/int_elemental.c index 0146c8926..d81e10f84 100644 --- a/src/char/int_elemental.c +++ b/src/char/int_elemental.c @@ -138,8 +138,8 @@ static void mapif_parse_elemental_save(int fd, struct s_elemental* ele) { mapif_elemental_saved(fd, result); } -int inter_elemental_sql_init(void) { - return 0; +void inter_elemental_sql_init(void) { + return; } void inter_elemental_sql_final(void) { return; diff --git a/src/char/int_elemental.h b/src/char/int_elemental.h index 89001dd95..7eb5c2958 100644 --- a/src/char/int_elemental.h +++ b/src/char/int_elemental.h @@ -6,7 +6,7 @@ struct s_elemental; -int inter_elemental_sql_init(void); +void inter_elemental_sql_init(void); void inter_elemental_sql_final(void); int inter_elemental_parse_frommap(int fd); diff --git a/src/char/inter.c b/src/char/inter.c index 8d40963df..16cd356ab 100644 --- a/src/char/inter.c +++ b/src/char/inter.c @@ -815,7 +815,7 @@ void inter_final(void) inter_pet_sql_final(); inter_homunculus_sql_final(); inter_mercenary_sql_final(); - inter_elemental_sql_init(); + inter_elemental_sql_final(); inter_mail_sql_final(); inter_auction_sql_final(); -- cgit v1.2.3-70-g09d2