Skip to content

Commit

Permalink
Fix #479: setAccountName does not save name in database (#939)
Browse files Browse the repository at this point in the history
  • Loading branch information
StrixG authored and patrikjuvonen committed May 18, 2019
1 parent c054cc3 commit cf4ae9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Server/mods/deathmatch/logic/CAccountManager.cpp
Expand Up @@ -272,9 +272,9 @@ void CAccountManager::Save(CAccount* pAccount, bool bCheckForErrors)
SString strQuery;
strQuery += m_pDatabaseManager->PrepareStringf(m_hDbConnection, "UPDATE accounts SET ip=?", SQLITE_TEXT, *strIP);
if (!strSerial.empty())
strQuery += m_pDatabaseManager->PrepareStringf(m_hDbConnection, ",serial=?", SQLITE_TEXT, *strSerial);
strQuery += m_pDatabaseManager->PrepareStringf(m_hDbConnection, ",password=?, httppass=? WHERE name=?", SQLITE_TEXT, *strPassword, SQLITE_TEXT,
*strHttpPassAppend, SQLITE_TEXT, *strName);
strQuery += m_pDatabaseManager->PrepareStringf(m_hDbConnection, ", serial=?", SQLITE_TEXT, *strSerial);
strQuery += m_pDatabaseManager->PrepareStringf(m_hDbConnection, ", name=?, password=?, httppass=? WHERE id=?", SQLITE_TEXT, *strName, SQLITE_TEXT, *strPassword,
SQLITE_TEXT, *strHttpPassAppend, SQLITE_INTEGER, iID);

if (bCheckForErrors)
{
Expand Down

0 comments on commit cf4ae9c

Please sign in to comment.