From a39c35fc6449430cd02bccb681c4a0a880e46cd9 Mon Sep 17 00:00:00 2001 From: lcy <1459594991@qq.com> Date: 星期一, 16 十二月 2024 21:00:51 +0800 Subject: [PATCH] 10296 轮回殿修复bug --- System/LoopAct/CycleHall/OperationCycleHall.cs | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/System/LoopAct/CycleHall/OperationCycleHall.cs b/System/LoopAct/CycleHall/OperationCycleHall.cs index 77a66f3..3d253ab 100644 --- a/System/LoopAct/CycleHall/OperationCycleHall.cs +++ b/System/LoopAct/CycleHall/OperationCycleHall.cs @@ -10,10 +10,7 @@ public bool TryGetRound(int roundType, out HAA88_tagMCActLunhuidianInfo.tagMCActLunhuidianRound round) { - round = new HAA88_tagMCActLunhuidianInfo.tagMCActLunhuidianRound { }; - if (roundInfoDict == null || !roundInfoDict.TryGetValue(roundType, out round)) - return false; - return true; + return roundInfoDict.TryGetValue(roundType, out round); } public bool TryGetRoundInfoByIndex(int roundType, int index, out HAA88_tagMCActLunhuidianInfo.tagMCActLunhuidianAward awardInfo) @@ -69,6 +66,7 @@ public override void Reset() { base.Reset(); + roundInfoDict.Clear(); } public void ParseCycleHallInfo(HAA88_tagMCActLunhuidianInfo package) -- Gitblit v1.8.0