aboutsummaryrefslogtreecommitdiffstats
path: root/c_litems.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-09 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-01-09 20:20:20 +0100
commitf631d61419a65fa456f69e9dcf7977a4472b0483 (patch)
tree681169140da5e00ffe1a226eacb9dab8cda12939 /c_litems.go
parentgood (diff)
downloadhardflip-f631d61419a65fa456f69e9dcf7977a4472b0483.tar.gz
hardflip-f631d61419a65fa456f69e9dcf7977a4472b0483.tar.bz2
hardflip-f631d61419a65fa456f69e9dcf7977a4472b0483.tar.xz
hardflip-f631d61419a65fa456f69e9dcf7977a4472b0483.tar.zst
hardflip-f631d61419a65fa456f69e9dcf7977a4472b0483.zip
this fucking bug
Diffstat (limited to '')
-rw-r--r--c_litems.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/c_litems.go b/c_litems.go
index e1fef34..5e8a1a9 100644
--- a/c_litems.go
+++ b/c_litems.go
@@ -88,14 +88,11 @@ func (litems *ItemsList) del(item *ItemsNode) {
if litems.head == item {
litems.head = litems.head.next
if litems.head == nil {
- litems.last = nil
- litems.curr = nil
- litems.draw_start = nil
+ litems.last, litems.curr, litems.draw_start = nil, nil, nil
return
}
litems.head.prev = nil
- litems.curr = litems.head
- litems.draw_start = litems.head
+ litems.curr, litems.draw_start = litems.head, litems.head
for ptr := litems.head; ptr != nil; ptr = ptr.next {
ptr.ID -= 1
}