Render text working.
This commit is contained in:
@@ -56,10 +56,13 @@ void refListUnlock(reflist_t *list, const ref_t ref) {
|
||||
} while(slot < end);
|
||||
|
||||
assertTrue(slot < end, "Reference not found in list");
|
||||
|
||||
memoryMove(slot, slot + 1, (end - slot - 1) * sizeof(ref_t));
|
||||
|
||||
// Can't move if list only has one ref
|
||||
if(list->count > 1) {
|
||||
memoryMove(slot, slot + 1, (end - slot - 1) * sizeof(ref_t));
|
||||
}
|
||||
|
||||
list->count--;
|
||||
|
||||
if(list->onRemove) list->onRemove(list, ref);
|
||||
if(list->onEmpty && refListIsEmpty(list)) list->onEmpty(list);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user