]> granicus.if.org Git - nethack/commitdiff
Fix glyph lookup
authorPasi Kallinen <paxed@alt.org>
Thu, 7 Jan 2021 19:53:53 +0000 (21:53 +0200)
committerPasi Kallinen <paxed@alt.org>
Thu, 7 Jan 2021 19:53:56 +0000 (21:53 +0200)
Seems to have been a mistake in c9673b3d9e

src/pager.c

index 1a70f63cc5054d9566a475f8f345a2acd0068810..e7898c072d5e46a9e31e5fcba4a62910963c4884 100644 (file)
@@ -900,7 +900,7 @@ struct permonst **for_supplement;
         glyph = glyph_at(cc.x, cc.y);
         /* Convert glyph at selected position to a symbol for use below. */
         map_glyphinfo(cc.x, cc.y, glyph, 0, &glyphinfo);
-        sym = glyphinfo.symidx;
+        sym = glyphinfo.ttychar;
         Sprintf(prefix, "%s        ", encglyph(glyphinfo.glyph));
     } else
         Sprintf(prefix, "%c        ", sym);