Core/Database: Return an unknown error code instead of false (0) if mysql_init failed.

* Thanks @et65 for noticing.
* ref #14139
This commit is contained in:
Naios
2015-03-29 15:03:32 +02:00
parent 9ba60b52c5
commit 83bbe00785

View File

@@ -79,7 +79,7 @@ uint32 MySQLConnection::Open()
if (!mysqlInit)
{
TC_LOG_ERROR("sql.sql", "Could not initialize Mysql connection to database `%s`", m_connectionInfo.database.c_str());
return false;
return CR_UNKNOWN_ERROR;
}
int port;