summaryrefslogtreecommitdiffstats
path: root/hack
diff options
context:
space:
mode:
authorjnemeth <jnemeth@NetBSD.org>2006-03-30 01:31:13 +0000
committerjnemeth <jnemeth@NetBSD.org>2006-03-30 01:31:13 +0000
commit2ecbb982b34047188a30b350ca10c8846fc85c3e (patch)
tree61496e17db19a826202421ee6d73f28def4304a3 /hack
parent4fb5b4006b9fecf6ee1b155e1f47685515c580fe (diff)
downloadbsdgames-darwin-2ecbb982b34047188a30b350ca10c8846fc85c3e.tar.gz
bsdgames-darwin-2ecbb982b34047188a30b350ca10c8846fc85c3e.tar.zst
bsdgames-darwin-2ecbb982b34047188a30b350ca10c8846fc85c3e.zip
Bah! Compare, don't assign!
Diffstat (limited to 'hack')
-rw-r--r--hack/hack.dog.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hack/hack.dog.c b/hack/hack.dog.c
index 1e839c97..95699a79 100644
--- a/hack/hack.dog.c
+++ b/hack/hack.dog.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.dog.c,v 1.7 2006/03/30 01:25:52 jnemeth Exp $ */
+/* $NetBSD: hack.dog.c,v 1.8 2006/03/30 01:31:13 jnemeth Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,7 +63,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.dog.c,v 1.7 2006/03/30 01:25:52 jnemeth Exp $");
+__RCSID("$NetBSD: hack.dog.c,v 1.8 2006/03/30 01:31:13 jnemeth Exp $");
#endif /* not lint */
#include "hack.h"
@@ -366,7 +366,7 @@ dog_move(struct monst *mtmp, int after)
ny = poss[i].y;
if (info[i] & ALLOW_M) {
mtmp2 = m_at(nx, ny);
- if (mtmp2 = NULL)
+ if (mtmp2 == NULL)
panic("error in dog_move");
if (mtmp2->data->mlevel >= mdat->mlevel + 2 ||
mtmp2->data->mlet == 'c')