changeset 299:74351bf23e5e

Fix another pointer bug related to object stacks.
author John "Elwin" Edwards
date Sun, 11 Feb 2018 15:37:33 -0500
parents 5a94c9b3181e
children 0250220d8cdd
files urogue/pack.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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;