Skip to content

Commit

Permalink
Fix incorrect check for completed playlist item
Browse files Browse the repository at this point in the history
  • Loading branch information
nanaya committed Dec 2, 2023
1 parent 568fb0a commit 7c4a296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/Multiplayer/UserScoreAggregate.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public function userRank()

private function updateUserTotal(ScoreLink $currentScoreLink, PlaylistItemUserHighScore $prev)
{
if ($prev->exists) {
if ($prev->last_score_id !== null) {
$this->total_score -= $prev->total_score;
$this->accuracy -= $prev->accuracy;
$this->pp -= $prev->pp;
Expand Down

0 comments on commit 7c4a296

Please sign in to comment.