zhaoyang 2 жил өмнө
parent
commit
39699d0ab2

+ 2 - 1
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryCardChoose.cs

@@ -104,7 +104,8 @@ namespace GFGGame
             _ui.m_listSkill.numItems = skillCfgs.Count;
             _ui.m_comSkillTips.target.visible = false;
             _selectedIndex = index;
-            _ui.m_listCard.GetChildAt(index).asCom.AddChild(_comSelected);
+            int childIndex = _ui.m_listCard.ItemIndexToChildIndex(index);
+            _ui.m_listCard.GetChildAt(childIndex).asCom.AddChild(_comSelected);
         }
         private void RenderListSkillItem(int index, GObject obj)
         {