Fix bug in floating objects to mostRecent

This commit is contained in:
Jordan Bancino 2022-11-21 21:07:40 +00:00
parent 40e5c1ef2a
commit 973e826e57

View file

@ -404,12 +404,15 @@ DbLockFromArr(Db * db, Array * args)
if (ref->next)
{
ref->next->prev = ref->prev;
ref->prev->next = ref->next;
if (!ref->prev)
{
db->leastRecent = ref->next;
}
else
{
ref->prev->next = ref->next;
}
ref->prev = db->mostRecent;
ref->next = NULL;