diff --git a/Assets/ManagedResources/~Lua/Modules/Story/StoryMapPanel.lua b/Assets/ManagedResources/~Lua/Modules/Story/StoryMapPanel.lua index d1619882cb..e817f2f15c 100644 --- a/Assets/ManagedResources/~Lua/Modules/Story/StoryMapPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Story/StoryMapPanel.lua @@ -460,13 +460,22 @@ function this:ShowDialog() this:StackPop() end else + + local config = chapterEventPointData[this.curEvent.groups[this.eventIndex]] + if not config then + this:CloseDiaLog() + LogGreen("this.curEvent.groups[this.eventIndex]:"..this.curEvent.groups[this.eventIndex].." this.eventIndex:"..this.eventIndex) + if this.go then + this.go:StackPop() + this.go = nil + else + this:StackPop() + end + return + end this.showImg:SetActive(false) this.dialog.gameObject:SetActive(true) this.GoOn.gameObject:SetActive(true) - local config = chapterEventPointData[this.curEvent.groups[this.eventIndex]] - if not config then - --LogGreen("this.curEvent.groups[this.eventIndex]:"..this.curEvent.groups[this.eventIndex].." this.eventIndex:"..this.eventIndex) - end local showValues = GetLanguageStrById(config.ShowValues) local options = config.Option