diff 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
line wrap: on
line diff
--- a/urogue/pack.c	Thu Feb 08 20:54:34 2018 -0500
+++ b/urogue/pack.c	Sun Feb 11 15:37:33 2018 -0500
@@ -54,6 +54,7 @@
     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;