lzx 3 дней назад
Родитель
Сommit
c1f105505b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Assets/Scripts/GameUI/UI/DialoguePanel/DialoguePanel.cs

+ 1 - 1
Assets/Scripts/GameUI/UI/DialoguePanel/DialoguePanel.cs

@@ -205,7 +205,7 @@ namespace Fort23.Mono
                 }
                 else
                 {
-                    if (eventConditionConfig.ID != 0 && _eventLinkData.eventConditions.Count > 0)
+                    if (eventConditionConfig.ID != 0 && _eventLinkData != null && _eventLinkData.eventConditions.Count > 0)
                     {
                         foreach (var eventConditionData in _eventLinkData.eventConditions)
                         {