From 29bcdf941968d0affb636d238fc23c0cb94ef237 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 09 一月 2026 21:25:36 +0800
Subject: [PATCH] 0312 红颜查看属性报错

---
 Main/System/BeautyMM/BeautyMMTalentAttrCell.cs |    4 ++++
 Main/System/BeautyMM/BeautyMMTalentWin.cs      |   16 +++++++++++++---
 2 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/Main/System/BeautyMM/BeautyMMTalentAttrCell.cs b/Main/System/BeautyMM/BeautyMMTalentAttrCell.cs
index f9b58bb..f75542e 100644
--- a/Main/System/BeautyMM/BeautyMMTalentAttrCell.cs
+++ b/Main/System/BeautyMM/BeautyMMTalentAttrCell.cs
@@ -20,6 +20,10 @@
         var mmConfig = BeautyConfig.Get(mmID);
         BeautyQualityLVConfig config;
         BeautyQualityLVConfig.TryGetBeautyQualityLVConfig(mmConfig.BeautyQuality, lv, out config);
+        if (config == null)
+        {
+            return;
+        }
         var id = config.AttrIDList[0];
         if (!isLVActive)
         {
diff --git a/Main/System/BeautyMM/BeautyMMTalentWin.cs b/Main/System/BeautyMM/BeautyMMTalentWin.cs
index 93b37a3..ca05723 100644
--- a/Main/System/BeautyMM/BeautyMMTalentWin.cs
+++ b/Main/System/BeautyMM/BeautyMMTalentWin.cs
@@ -57,13 +57,23 @@
         {
             if (i % 20 == 0)
             {
-                attrScroller.AddCell(ScrollerDataType.Header, i / 20);
                 talentScroller.AddCell(ScrollerDataType.Header, i / 20);
             }
 
-            attrScroller.AddCell(ScrollerDataType.Normal, i + 1);
-            
+
         }
+        for (int i = 0; i < maxLV; i++)
+        {
+            if (i % 20 == 0)
+            {
+                attrScroller.AddCell(ScrollerDataType.Header, i / 20);
+            }
+
+            attrScroller.AddCell(ScrollerDataType.Normal, i + 1);
+        }
+
+
+
         attrScroller.Restart();
         talentScroller.Restart();
     }

--
Gitblit v1.8.0