Browse Source

修改bug

lzx 2 days ago
parent
commit
2b24b5892d
1 changed files with 1 additions and 1 deletions
  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;
         int count = 0;
         foreach (var eventList in AccountFileInfo.Instance.playerData.eventList)
         foreach (var eventList in AccountFileInfo.Instance.playerData.eventList)
         {
         {
-            if(eventList == null)
+            if (eventList == null || eventList.eventID == 0)
                 continue;
                 continue;
             EventConfig eventConfig = ConfigComponent.Instance.Get<EventConfig>(eventList.eventID);
             EventConfig eventConfig = ConfigComponent.Instance.Get<EventConfig>(eventList.eventID);
             if (eventConfig.EventTriggerType != 5)
             if (eventConfig.EventTriggerType != 5)