Browse Source

多人BUG

胡佳骏 1 year ago
parent
commit
0acaf17c9f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Assets/LangChaoRTC/Remote/ShowRoom/PeerSamllView.cs

+ 1 - 1
Assets/LangChaoRTC/Remote/ShowRoom/PeerSamllView.cs

@@ -182,7 +182,7 @@ public class PeerSamllView : BaseView, IPointerEnterHandler, IPointerExitHandler
             bool isAdd =false;
             for (int j = 0; j < AgoraVideoAudioManager.Instance.listCustomPeer.Count; j++)
             {
-                if(AgoraVideoAudioManager.Instance.listCustomPeer[i].peerId == cPeer.peerId)
+                if(AgoraVideoAudioManager.Instance.listCustomPeer[j].peerId == cPeer.peerId)
                 {
                     isAdd = true;
                 }