fix(Core/Arena): Fix lag caused by arena distribution (#15444)

* cherry-pick commit (3f3dee8049)

Co-authored-by: ibakula <10998369+ibakula@users.noreply.github.com>
Co-authored-by: Gildor <521036+Jildor@users.noreply.github.com>
This commit is contained in:
Kitzunu
2023-03-18 09:50:45 +01:00
committed by GitHub
parent 7f7ec62a0a
commit 465c5b12e4
3 changed files with 17 additions and 6 deletions

View File

@@ -239,8 +239,9 @@ void ArenaTeamMgr::DistributeArenaPoints()
{
if (ArenaTeam* at = titr->second)
{
at->FinishWeek();
at->SaveToDB();
if (at->FinishWeek())
at->SaveToDB(true);
at->NotifyStatsChanged();
}
}