diff --git a/GameUI/LAtkValue.cs b/GameUI/LAtkValue.cs index 427e7f6..70982ff 100644 --- a/GameUI/LAtkValue.cs +++ b/GameUI/LAtkValue.cs @@ -7,6 +7,8 @@ public static class LAtkValue { public static unsafe string? ReadAtkString(this AtkValue atkValue) { + if (atkValue.Type == ValueType.Undefined) + return null; if (atkValue.String != null) return MemoryHelper.ReadSeStringNullTerminated(new nint(atkValue.String)).ToString(); return null;