summaryrefslogtreecommitdiff
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
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
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--src/map/map.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index f5ff2c626..c443ea05b 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -3,6 +3,8 @@ Date Added
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
+2009/11/26
+ * 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. [Paradox924X]
2009/11/25
* Fixed strnpcinfo(1) returning blank strings when NPC names did not have a hidden portion of the display name. (bugreport:3758) [Paradox924X]
2009/11/23
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イベント?行