2397: Update game id when updating team score r=heinrich5991 a=def-



Co-authored-by: def <dennis@felsin9.de>
This commit is contained in:
bors[bot] 2020-06-27 20:47:00 +00:00 committed by GitHub
commit dcd0976159
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -747,8 +747,8 @@ bool CSqlScore::SaveTeamScoreThread(CSqlServer* pSqlServer, const CSqlData<void>
if(pData->m_Time < Time)
{
str_format(aBuf, sizeof(aBuf),
"UPDATE %s_teamrace SET Time='%.2f', Timestamp='%s', DDNet7=false WHERE ID = '%s';",
pSqlServer->GetPrefix(), pData->m_Time, pData->m_aTimestamp, ID.c_str());
"UPDATE %s_teamrace SET Time='%.2f', Timestamp='%s', DDNet7=false, GameID='%s' WHERE ID = '%s';",
pSqlServer->GetPrefix(), pData->m_Time, pData->m_aTimestamp, pData->m_GameUuid, ID.c_str());
dbg_msg("sql", "%s", aBuf);
pSqlServer->executeSql(aBuf);
}