lzx 2 روز پیش
والد
کامیت
2b24b5892d
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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)