Skip to content

Commit 3e52424

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

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

CHANGELOG.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Changelog
22

3-
## v0.0.22 (20 July)
3+
## v0.0.23 (12 Oct 2024)
4+
- Fix a DLC3 crash
5+
6+
## v0.0.22 (20 July 2024)
47
- Added check for 10 corrupted shards for corrupted weapon prerequisites
58
- Added missing prerequisite of Savior to Corrupted Savior in the database
69
- Improved notes for Game Master's Pride in the database

Remnant2SaveAnalyzer/Remnant2SaveAnalyzer.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</ItemGroup>
1717

1818
<ItemGroup>
19-
<PackageReference Include="lib.remnant2.analyzer" Version="0.0.24" />
19+
<PackageReference Include="lib.remnant2.analyzer" Version="0.0.25" />
2020
<PackageReference Include="Microsoft.Xaml.Behaviors.Wpf" Version="1.1.122" />
2121
<PackageReference Include="Serilog" Version="4.0.1" />
2222
<PackageReference Include="Serilog.Expressions" Version="5.0.0" />

Remnant2SaveAnalyzer/RemnantSave.cs

+9-2
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,15 @@ private void ReportPlayerInfo()
333333
{
334334
foreach (InventoryItem slottedItem in character.Profile.Inventory.Where(x => x.EquippedModItemId == item.Id))
335335
{
336-
LootItem li = slottedItem.LootItem!;
337-
logger.Information($" {Utils.FormatEquipmentSlot(string.Empty,li.Type,slottedItem.Level ?? 1,li.Name)}");
336+
LootItem? li = slottedItem.LootItem;
337+
if (li == null)
338+
{
339+
logger.Warning($"!!!!!!Equipped item with profileId: '{slottedItem.ProfileId}' not found");
340+
}
341+
else
342+
{
343+
logger.Information($" {Utils.FormatEquipmentSlot(string.Empty, li.Type, slottedItem.Level ?? 1, li.Name)}");
344+
}
338345
}
339346
}
340347
}

0 commit comments

Comments
 (0)