]> git.pond.sub.org Git - empserver/commitdiff
(pathcost): Fix the previous rev.
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 25 Sep 2005 16:03:22 +0000 (16:03 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 25 Sep 2005 16:03:22 +0000 (16:03 +0000)
src/lib/common/path.c

index b6e33e9c2c19105894a6d001229c1fc03c906568..8321818fb0a13c2172588ed729d1b8bfba832458 100644 (file)
@@ -326,7 +326,7 @@ pathcost(struct sctstr *start, s_char *path, int mob_type)
        if (CANT_HAPPEN(i >= sizeof(dirindex) / sizeof(*dirindex)))
            break;
        o = dirindex[i];
-       if (CANT_HAPPEN(o) < 0)
+       if (CANT_HAPPEN(o < 0))
            break;
        cx += diroff[o][0];
        cy += diroff[o][1];