Skip to content

Commit

Permalink
Merge pull request ddnet#6977 from Zwelf/pr-fix-load-backup-db
Browse files Browse the repository at this point in the history
Fix /load from backup database
  • Loading branch information
heinrich5991 authored Aug 7, 2023
2 parents ac558b0 + 18dff9e commit bbbc4e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/server/scoreworker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1641,7 +1641,7 @@ bool CScoreWorker::SaveTeam(IDbConnection *pSqlServer, const ISqlData *pGameData

bool CScoreWorker::LoadTeam(IDbConnection *pSqlServer, const ISqlData *pGameData, Write w, char *pError, int ErrorSize)
{
if(w == Write::NORMAL_SUCCEEDED || Write::BACKUP_FIRST)
if(w == Write::NORMAL_SUCCEEDED || w == Write::BACKUP_FIRST)
return false;
const auto *pData = dynamic_cast<const CSqlTeamLoad *>(pGameData);
auto *pResult = dynamic_cast<CScoreSaveResult *>(pGameData->m_pResult.get());
Expand Down

0 comments on commit bbbc4e5

Please sign in to comment.