forked from Cliffbreak/tsviewer
hotfix
This commit is contained in:
parent
e4556869fe
commit
126eb99d0f
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ func removeItem(slice *[]*ts3.Channel, id int) {
|
||||||
if length < id+1 {
|
if length < id+1 {
|
||||||
ss = nil
|
ss = nil
|
||||||
} else if length == id+1 {
|
} else if length == id+1 {
|
||||||
ss = ss[id-1:]
|
ss = ss[:id]
|
||||||
} else if length > id+1 {
|
} else if length > id+1 {
|
||||||
ss = append(ss[:id], ss[id+1:]...)
|
ss = append(ss[:id], ss[id+1:]...)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue