comparison urogue/pack.c @ 299:74351bf23e5e

Fix another pointer bug related to object stacks.
author John "Elwin" Edwards
date Sun, 11 Feb 2018 15:37:33 -0500
parents c495a4f288c6
children
comparison
equal deleted inserted replaced
298:5a94c9b3181e 299:74351bf23e5e
52 detach((obt->next_obj), node); /* Take it out of the stack */ 52 detach((obt->next_obj), node); /* Take it out of the stack */
53 attach(lvl_obj, node); /* and put it into the level */ 53 attach(lvl_obj, node); /* and put it into the level */
54 detach(lvl_obj, top); /* Remove item from level */ 54 detach(lvl_obj, top); /* Remove item from level */
55 55
56 obn->next_obj = obt->next_obj; 56 obn->next_obj = obt->next_obj;
57 obt->next_obj = NULL;
57 58
58 if (obn->next_obj) 59 if (obn->next_obj)
59 obn->next_obj->l_prev = NULL; 60 obn->next_obj->l_prev = NULL;
60 61
61 attach((obn->next_obj), top); 62 attach((obn->next_obj), top);