Skip to content

Commit e3a771e

Browse files
committed
Fix attribute points using the wrong enum.
1 parent 67b6fe0 commit e3a771e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

CP2077SaveEditor/Views/Form1.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ await Task.Run(() =>
749749

750750
var points = activeSaveFile.GetPlayerDevelopmentData().DevPoints.ToArray();
751751
perkPointsUpDown.SetValue(points[Array.FindIndex(points, x => x.Type == gamedataDevelopmentPointType.Primary)].Unspent);
752-
attrPointsUpDown.SetValue(points[Array.FindIndex(points, x => x.Type == gamedataDevelopmentPointType.Secondary)].Unspent);
752+
attrPointsUpDown.SetValue(points[Array.FindIndex(points, x => x.Type == gamedataDevelopmentPointType.Attribute)].Unspent);
753753

754754
//PSData parsing
755755

@@ -1433,7 +1433,7 @@ private void PlayerStatChanged(object sender, EventArgs e)
14331433
var points = activeSaveFile.GetPlayerDevelopmentData().DevPoints;
14341434

14351435
points[Array.FindIndex(points.ToArray(), x => x.Type == gamedataDevelopmentPointType.Primary)].Unspent = (int)perkPointsUpDown.Value;
1436-
points[Array.FindIndex(points.ToArray(), x => x.Type == gamedataDevelopmentPointType.Secondary)].Unspent = (int)attrPointsUpDown.Value;
1436+
points[Array.FindIndex(points.ToArray(), x => x.Type == gamedataDevelopmentPointType.Attribute)].Unspent = (int)attrPointsUpDown.Value;
14371437
}
14381438
}
14391439

0 commit comments

Comments
 (0)