Skip to content

Commit

Permalink
fix crash when loadout contains only a single archetype
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSav committed Jun 13, 2024
1 parent 5c506d6 commit 477f6b8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
13 changes: 8 additions & 5 deletions Analyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,14 @@ public static Dataset Analyze(string? folderPath = null, Dataset? oldDataset = n
foreach (object? aspItem in asp.Items)
{
PropertyBag pb = (PropertyBag)aspItem!;
loadout.Add(new(
id: pb["ItemClass"].Get<string>(),
level: pb["Level"].Get<int>(),
typeId: pb["Slot"].Get<ObjectProperty>().ClassName!
));
if (pb["ItemClass"].Value != null)
{
loadout.Add(new(
id: pb["ItemClass"].Get<string>(),
level: pb["Level"].Get<int>(),
typeId: pb["Slot"].Get<ObjectProperty>().ClassName!
));
}
}
}
}
Expand Down
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Changelog

## v0.0.20 (Unreleased)
- Added names for unremovable weapon mods and archetype skills
## v0.0.20 (13 Jube 2024)
- Fixed a crash when an load out has one archetype only
- Fixed a crash on new character creation
- Added names for unremovable weapon mods and archetype skills

## v0.0.19 (8 June 2024)
- Added support for respawn points orther then Worldstones
Expand Down

0 comments on commit 477f6b8

Please sign in to comment.