summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-11-26 10:13:56 +0000
committerParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-11-26 10:13:56 +0000
commit07dee1fd6c710b78fc826679966dbb6c0c1a8d44 (patch)
tree7b8350cb42acd0bd26f8f67a95a781ceeea0be32 /src/map/map.c
parente51efc0c9d4fb9a66ab31e66722bf264a6596209 (diff)
downloadhercules-07dee1fd6c710b78fc826679966dbb6c0c1a8d44.tar.gz
hercules-07dee1fd6c710b78fc826679966dbb6c0c1a8d44.tar.bz2
hercules-07dee1fd6c710b78fc826679966dbb6c0c1a8d44.tar.xz
hercules-07dee1fd6c710b78fc826679966dbb6c0c1a8d44.zip
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
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c6
1 files changed, 2 insertions, 4 deletions
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イベント?行