Commit b4539eab5e6cf5af91d2ddb085bf41efbd780ab2
1 parent
2bbe22c8
闪退修改
Showing
1 changed file
with
1 additions
and
1 deletions
metaCode/Classes/Config/CNLiveConfigUserInfo.swift
| ... | ... | @@ -257,7 +257,7 @@ class StandSortManager: NSObject { |
| 257 | 257 | let standModel = item as! StandListModel |
| 258 | 258 | let old_index = have_auths.index(of: standModel) |
| 259 | 259 | let new_index = have_id_auths.index(of: standModel.id) |
| 260 | - if old_index != new_index { | |
| 260 | + if old_index != new_index && have_auths.count == have_id_auths.count { | |
| 261 | 261 | swap(&have_auths[new_index], &have_auths[old_index]) |
| 262 | 262 | } |
| 263 | 263 | } | ... | ... |