소스 검색

清理活跃点bug

cyzhao 11 달 전
부모
커밋
0ccec213a2
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      Gameserver/App/process/TaskProc.php

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

@@ -319,7 +319,8 @@ class TaskProc {
      */
     static function clearActivePointRewardReceived($type = 1) {
         $reward = ctx()->task->activePointReceived;
-        for ($i = 0; $i < count($reward); $i++) {
+        $num = count($reward);
+        for ($i = 0; $i < $num; $i++) {
             $arr = explode('-', $reward[$i]);
             if($arr[0] == $type){
                 StlUtil::arrayRemoveAt(ctx()->task->activePointReceived,$i);