From 07dee1fd6c710b78fc826679966dbb6c0c1a8d44 Mon Sep 17 00:00:00 2001 From: Paradox924X Date: Thu, 26 Nov 2009 10:13:56 +0000 Subject: Moved log_sql_init() call up in map-server-init to after after map_sql_init() call to prevent unnecessary processing before a potential quit. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14172 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/map.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/map') diff --git a/src/map/map.c b/src/map/map.c index 7f8a72cd2..dc338c5c6 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -3595,6 +3595,8 @@ int do_init(int argc, char *argv[]) #ifndef TXT_ONLY map_sql_init(); + if (log_config.sql_logs) + log_sql_init(); #endif /* not TXT_ONLY */ mapindex_init(); @@ -3629,10 +3631,6 @@ int do_init(int argc, char *argv[]) do_init_npc(); do_init_unit(); do_init_battleground(); -#ifndef TXT_ONLY /* mail system [Valaris] */ - if (log_config.sql_logs) - log_sql_init(); -#endif /* not TXT_ONLY */ npc_event_do_oninit(); // npcのOnInitイベント?行 -- cgit v1.2.3-60-g2f50