Update game id when updating team score

This commit is contained in:
def 2020-06-27 22:19:25 +02:00
parent a56fbbc340
commit 1c09798504

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);
}