]> granicus.if.org Git - nethack/commitdiff
Melded pudding object may be gone
authorPasi Kallinen <paxed@alt.org>
Mon, 4 May 2015 19:19:27 +0000 (22:19 +0300)
committerPasi Kallinen <paxed@alt.org>
Mon, 4 May 2015 19:19:32 +0000 (22:19 +0300)
src/do.c

index 3962e6d01e4336985a309e82c5f3b8a9993fa3c1..d8585935322666faf6a034629231119d685cb65f 100644 (file)
--- a/src/do.c
+++ b/src/do.c
@@ -218,7 +218,7 @@ const char *verb;
         /* Globby things like puddings might stick together */
         while (obj && (otmp = obj_nexto_xy(obj->otyp, x, y, obj->o_id)) != (struct obj*)0) {
             pudding_merge_message(obj, otmp);
-            obj_meld(&obj, &otmp);
+            obj = obj_meld(&obj, &otmp);
         }
         return (obj == NULL); 
     }