From 126eb99d0f7eb2eda5f3474ba808ae37c42798bf Mon Sep 17 00:00:00 2001 From: Hendrik Schlehlein Date: Thu, 31 Jan 2019 20:35:31 +0100 Subject: [PATCH] hotfix --- service/channel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/channel.go b/service/channel.go index 1631148..41f9201 100644 --- a/service/channel.go +++ b/service/channel.go @@ -72,7 +72,7 @@ func removeItem(slice *[]*ts3.Channel, id int) { if length < id+1 { ss = nil } else if length == id+1 { - ss = ss[id-1:] + ss = ss[:id] } else if length > id+1 { ss = append(ss[:id], ss[id+1:]...) }