Fix return values for loading saves

Introduced by an incorrect rebase.
This commit is contained in:
heinrich5991 2021-02-24 20:43:07 +01:00
parent 83da81e8c3
commit 44437eed39

View file

@ -1780,7 +1780,7 @@ bool CScore::LoadTeamThread(IDbConnection *pSqlServer, const ISqlData *pGameData
if(!Found)
{
str_copy(pResult->m_aMessage, "You don't belong to this team", sizeof(pResult->m_aMessage));
return true;
return false;
}
int Since = pSqlServer->GetInt(2);
@ -1789,7 +1789,7 @@ bool CScore::LoadTeamThread(IDbConnection *pSqlServer, const ISqlData *pGameData
str_format(pResult->m_aMessage, sizeof(pResult->m_aMessage),
"You have to wait %d seconds until you can load this savegame",
g_Config.m_SvSaveGamesDelay - Since);
return true;
return false;
}
bool CanLoad = pResult->m_SavedTeam.MatchPlayers(