diff --git a/src/do.c b/src/do.c index 593be00dc..562d97a40 100644 --- a/src/do.c +++ b/src/do.c @@ -1302,7 +1302,7 @@ goto_level( struct monst *mtmp; char whynot[BUFSZ]; char *annotation; - int dist = newlevel->dlevel - dunlev(&u.uz); + int dist = depth(newlevel) - depth(&u.uz); boolean do_fall_dmg = FALSE; if (dunlev(newlevel) > dunlevs_in_dungeon(newlevel))