Skip to content

Commit

Permalink
Fixed issue with null stats by default
Browse files Browse the repository at this point in the history
  • Loading branch information
grofit committed Jan 28, 2022
1 parent 60cd017 commit 00f2bb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OpenRpg.Genres/Characters/DefaultCharacter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ public class DefaultCharacter : ICharacter
public int Id { get; set; }
public string NameLocaleId { get; set; }
public string DescriptionLocaleId { get; set; }
public IStatsVariables Stats { get; set; }
public IClass Class { get; set; }
public IStatsVariables Stats { get; set; } = new DefaultStatsVariables();
public IClass Class { get; set; } = new DefaultClass();
public byte GenderType { get; set; }
public IRaceTemplate Race { get; set; } = new DefaultRaceTemplate();
public IEquipment Equipment { get; set; } = new DefaultEquipment();
Expand Down

0 comments on commit 00f2bb6

Please sign in to comment.