Skip to content

Commit ccac364

Browse files
committed
fix a DLC3 crash
1 parent 3e52424 commit ccac364

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## v0.0.24 (14 Oct 2024)
4+
- Fix a DLC3 crash
5+
36
## v0.0.23 (12 Oct 2024)
47
- Fix a DLC3 crash
58

Remnant2SaveAnalyzer/RemnantSave.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,11 @@ private void ReportPlayerInfo()
207207
if (Enum.IsDefined(typeof(EquipmentSlot), r.EquippedSlot!))
208208
{
209209
string level = r.Level is > 0 ? $" +{r.Level}" : "";
210-
logger.Information($" {Utils.FormatCamelAsWords(r.EquippedSlot.ToString())}: {ItemDb.GetItemByProfileId(r.ProfileId)!.Name}{level}");
210+
LootItem? item = ItemDb.GetItemByProfileId(r.ProfileId);
211+
logger.Information(item == null
212+
? $"!!{r.ProfileId} not found in the database!"
213+
: $" {Utils.FormatCamelAsWords(r.EquippedSlot.ToString())}: {item.Name}{level}");
214+
211215
foreach(InventoryItem m in character.Profile.Inventory.Where(x => x.EquippedModItemId == r.Id))
212216
{
213217
if (m.LootItem == null) continue;

0 commit comments

Comments
 (0)