소스 검색

点击自定义速度时crash 问题

jsonwang 3 년 전
부모
커밋
8e4e0f777d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      BFFramework/Classes/Stuckpoint/View/PQSpeedSettingView.swift

+ 1 - 1
BFFramework/Classes/Stuckpoint/View/PQSpeedSettingView.swift

@@ -116,7 +116,7 @@ class PQSpeedSettingView: UIView {
     ///   - setEnable: 设置不可用状态
     func setSelectItem(index:Int,isSettingPlayer:Bool = true,setDisable:Bool = false,isCancle:Bool = false) {
        BFLog(message: "setSelectItem is \(index)")
-        if(index < 0 && index >= datas.count){
+        if(index < 0 || index >= datas.count){
             BFLog(message: "选择位置数据出错\(index)")
             return
         }