cyzhao 9 сар өмнө
parent
commit
d2964fb68e

+ 2 - 2
Gameserver/App/process/TaskProc.php

@@ -223,10 +223,10 @@ class TaskProc {
         if ($ins_activeTaskInfo->mo()->type != Enum_ActiveTaskType::MainTask) {
             return;
         }
-
-        StlUtil::dictRemove(ctx()->task->activeTaskInfo, $uid);
+       
         $nextId = $ins_activeTaskInfo->mo()->next;
         if ($nextId != null) {
+            StlUtil::dictRemove(ctx()->task->activeTaskInfo, $uid);
             self::MainTaskInit($nextId);
         }
     }