Fix another pointer bug related to object stacks.
This commit is contained in:
parent
b855903f99
commit
de95b19cee
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue