]> granicus.if.org Git - nethack/commitdiff
build fix for mummy wrapping changes
authorPatR <rankin@nethack.org>
Sun, 23 Oct 2022 07:30:23 +0000 (00:30 -0700)
committerPatR <rankin@nethack.org>
Sun, 23 Oct 2022 07:30:23 +0000 (00:30 -0700)
Not sure how I overlooked this earlier, but the warning about wrong
pointer type is showing up plainly now.  Fix that.

src/polyself.c

index d1f302ebe73eadaaa9f46b6140dcb0970bbd9a14..196ce7e07d22e0ef95722bbcbc14eb8706eb1ca8 100644 (file)
@@ -1076,7 +1076,7 @@ break_armor(void)
             useup(uarmu);
         }
     } else if (sliparm(uptr)) {
-        if ((otmp = uarm) != 0 && racial_exception(uptr, otmp) < 1) {
+        if ((otmp = uarm) != 0 && racial_exception(&g.youmonst, otmp) < 1) {
             if (donning(otmp))
                 cancel_don();
             Your("armor falls around you!");