Skip to content

Commit e562907

Browse files
committed
fix crash due to a souvenir with no name
1 parent 849cf9c commit e562907

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

DataTool/ToolLogic/Extract/ExtractHeroUnlocks.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ private static bool ShouldDo(Unlock unlock, IgnoreCaseDict<ParsedArg>? config, D
386386
}
387387

388388
// todo: if there are issues with dup names (cn, for now), maybe it could be a precise locale mapping using data instead
389-
ReadOnlySpan<string> alternateNames = unlock.GetSTU().m_name.GUID.GUID switch {
389+
ReadOnlySpan<string> alternateNames = unlock.GetSTU().m_name?.GUID.GUID switch {
390390
0x0DE00000000024D4 => OW1SkinAlternateNames,
391391
0x0DE000000000CB5F => OW2SkinAlternateNames, // shared
392392
0x0DE0000000022DAB => OW2SkinAlternateNames, // echo, freja

0 commit comments

Comments
 (0)