diff --git a/YJMPD-UWP/Model/ApiHandler.cs b/YJMPD-UWP/Model/ApiHandler.cs index 49e7579..a98e9e7 100644 --- a/YJMPD-UWP/Model/ApiHandler.cs +++ b/YJMPD-UWP/Model/ApiHandler.cs @@ -82,9 +82,9 @@ namespace YJMPD_UWP.Model foreach(JToken pl in players) { - string username = o["username"].ToString(); - double points = (double)o["points"]; - double pointstotal = (double)o["pointstotal"]; + string username = pl["username"].ToString(); + double points = (double)pl["points"]; + double pointstotal = (double)pl["pointstotal"]; App.Game.UpdatePlayer(username, pointstotal, points); }