Browse Source

修改bug

lzx 3 ngày trước cách đây
mục cha
commit
bae62a69d7
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      Assets/Scripts/GameUI/EventManager/EventSystemManager.cs

+ 2 - 0
Assets/Scripts/GameUI/EventManager/EventSystemManager.cs

@@ -213,6 +213,8 @@ public class EventSystemManager : Singleton<EventSystemManager>
         int count = 0;
         foreach (var eventList in AccountFileInfo.Instance.playerData.eventList)
         {
+            if(eventList == null)
+                continue;
             EventConfig eventConfig = ConfigComponent.Instance.Get<EventConfig>(eventList.eventID);
             if (eventConfig.EventTriggerType != 5)
             {