diff --git a/lib/game/components/score_points.dart b/lib/game/components/score_points.dart index 02506c8c..c6474b16 100644 --- a/lib/game/components/score_points.dart +++ b/lib/game/components/score_points.dart @@ -17,10 +17,10 @@ class BallScorePointsCallback extends ContactCallback { @override void begin( Ball ball, - ScorePoints hasPoints, + ScorePoints scorePoints, Contact _, ) { - ball.gameRef.read().add(Scored(points: hasPoints.points)); + ball.gameRef.read().add(Scored(points: scorePoints.points)); } // TODO(alestiago): remove once this issue is closed.