Fixed toFront opertaion in LRU logic of base tile hashing. Tests now pass.

This commit is contained in:
Sascha L. Teichmann 2016-05-11 11:49:53 +02:00
parent ed41cfbe01
commit ef1a2de98e
1 changed files with 3 additions and 0 deletions

View File

@ -43,8 +43,11 @@ func (bth *BaseTileHash) toFront(entry *btHashEntry) {
}
entry.prev.next = entry.next
entry.next.prev = entry.prev
entry.next = bth.root.next
entry.prev = &bth.root
bth.root.next.prev = entry
bth.root.next = entry
}