Skip to content

Commit

Permalink
fix a DLC3 crash
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSav committed Oct 14, 2024
1 parent 3e52424 commit ccac364
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## v0.0.24 (14 Oct 2024)
- Fix a DLC3 crash

## v0.0.23 (12 Oct 2024)
- Fix a DLC3 crash

Expand Down
6 changes: 5 additions & 1 deletion Remnant2SaveAnalyzer/RemnantSave.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,11 @@ private void ReportPlayerInfo()
if (Enum.IsDefined(typeof(EquipmentSlot), r.EquippedSlot!))
{
string level = r.Level is > 0 ? $" +{r.Level}" : "";
logger.Information($" {Utils.FormatCamelAsWords(r.EquippedSlot.ToString())}: {ItemDb.GetItemByProfileId(r.ProfileId)!.Name}{level}");
LootItem? item = ItemDb.GetItemByProfileId(r.ProfileId);
logger.Information(item == null
? $"!!{r.ProfileId} not found in the database!"
: $" {Utils.FormatCamelAsWords(r.EquippedSlot.ToString())}: {item.Name}{level}");

foreach(InventoryItem m in character.Profile.Inventory.Where(x => x.EquippedModItemId == r.Id))
{
if (m.LootItem == null) continue;
Expand Down

0 comments on commit ccac364

Please sign in to comment.