[Bug1000305]无id=0的引导步骤处理

main
yurui 2024-10-22 14:28:02 +08:00
parent 31af2a01ee
commit d8d65f326b
1 changed files with 7 additions and 1 deletions

View File

@ -143,6 +143,9 @@ namespace Gameplay.Guide
curCompleteId = completeStepId;
int groupId = GetGuideGroupId(curCompleteId);
if (0 == groupId)
return;
if (!dicGuideCfg.TryGetValue(groupId, out LinkedList<DataGuideCfg> linkCfg))
return;
@ -392,8 +395,11 @@ namespace Gameplay.Guide
{
foreach (DataGuideCfg guideCfg in TableManager.Instance.Tables.GuideConfig.DataList)
{
if (completeStepId > guideCfg.Id)
if (guideCfg.Id >= completeStepId)
{
completeCfg = guideCfg;
break;
}
}
}