[Bug1000305]无id=0的引导步骤处理
parent
31af2a01ee
commit
d8d65f326b
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue