Fix another pointer bug related to object stacks.

This commit is contained in:
John "Elwin" Edwards 2018-02-11 15:37:33 -05:00
parent b855903f99
commit de95b19cee

View file

@ -54,6 +54,7 @@ swap_top(struct linked_list *top, struct linked_list *node)
detach(lvl_obj, top); /* Remove item from level */
obn->next_obj = obt->next_obj;
obt->next_obj = NULL;
if (obn->next_obj)
obn->next_obj->l_prev = NULL;