From c5c394023e83494210d4c26a7203de7863727a6b Mon Sep 17 00:00:00 2001 From: cohrs Date: Sun, 3 Mar 2002 03:36:33 +0000 Subject: [PATCH] WIZKIT gold items - if !GOLDOBJ, putting gold in the WIZKIT would add zerobj to the inventory. This shows up when you "Da" and get a message like "you drop 0 glorkum 0 0 0" --- src/files.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/files.c b/src/files.c index 21da5835f..615062a03 100644 --- a/src/files.c +++ b/src/files.c @@ -1677,11 +1677,12 @@ read_wizkit() if ((ep = index(buf, '\n'))) *ep = '\0'; if (buf[0]) { otmp = readobjnam(buf, (struct obj *)0); - if (otmp) + if (otmp) { + if (otmp != &zeroobj) otmp = addinv(otmp); - else { - raw_printf("Bad wizkit item: \"%.50s\"", buf); - wait_synch(); + } else { + raw_printf("Bad wizkit item: \"%.50s\"", buf); + wait_synch(); } } }