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