Fix powers-related bug in @chzone
authorAri Johnson <ari@theari.com>
Tue, 25 Sep 2012 00:21:49 +0000 (20:21 -0400)
committerAri Johnson <ari@theari.com>
Tue, 25 Sep 2012 00:21:49 +0000 (20:21 -0400)
Fixes #272

src/set.c

index 214b2c952046a513140fde4b0de63672ce03d86d..5710656a417126b0c1a0da1025b2ef846e3b4c21 100644 (file)
--- a/src/set.c
+++ b/src/set.c
@@ -437,6 +437,7 @@ do_chzone(dbref player, char const *name, char const *newobj, int noisy)
      */
     if(DPBITS(thing))
       mush_free(DPBITS(thing), "POWER_SPOT"); /* Wipe Powers */
+    DPBITS(thing) = NULL;
   } else {
     if (noisy && (zone != NOTHING)) {
       if (Admin(thing) && noisy)