Browse Source

修改bug

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

+ 1 - 1
Assets/Scripts/GameUI/EventManager/EventSystemManager.cs

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