*Properly initialize members to prevent DB logging before the DB is started. Fixes a rarely seen startup crash.

*Code cleanup.

--HG--
branch : trunk
This commit is contained in:
Xanadu committed 2010-05-29 03:16:39 +02:00
1 parent de97bd4f00
commit d104f19469
5 files changed
+12 -37

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@
size_t Database::db_count = 0;
Database::Database()
Database::Database() : mMysql(NULL)
{
// before first connection
if (db_count++ == 0)
+3 -2
View File
@@ -31,8 +31,9 @@ INSTANTIATE_SINGLETON_1( Log );
Log::Log() :
raLogfile(NULL), logfile(NULL), gmLogfile(NULL), charLogfile(NULL),
dberLogfile(NULL), chatLogfile(NULL), m_gmlog_per_account(false), m_colored(false)
, arenaLogFile(NULL)
dberLogfile(NULL), chatLogfile(NULL), m_gmlog_per_account(false),
m_enableLogDBLater(false), m_enableLogDB(false), m_colored(false),
arenaLogFile(NULL)
{
Initialize();
}