Entities: Use 'required' and '= null!' to get rid of warnings

This commit is contained in:
2024-02-29 15:48:09 +01:00
parent 53a25b3be4
commit f922388db9
40 changed files with 142 additions and 155 deletions

View File

@ -103,7 +103,9 @@ namespace Elwig.Windows {
_modChanged = true;
var idx = (SeasonModifierList.SelectedIndex != -1) ? SeasonModifierList.SelectedIndex + 1 : _modList.Count;
var item = new Modifier {
Year = s.Year
Year = s.Year,
ModId = "",
Name = "",
};
_modList.Insert(idx, item);
SeasonModifierList.SelectedIndex = idx;