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

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
}