From 12d0bd9057e51302679ff970254a3c73beba771f Mon Sep 17 00:00:00 2001 From: cohrs Date: Sun, 2 Oct 2011 21:27:24 +0000 Subject: [PATCH] /home/cohrs/msg --- src/o_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/o_init.c b/src/o_init.c index d078707db..3b65bf9c7 100644 --- a/src/o_init.c +++ b/src/o_init.c @@ -529,7 +529,7 @@ doclassdisco() /* construct discosyms[] */ for (s = allclasses; *s; ++s) { oclass = *s; - c = def_oc_syms[oclass].sym; + c = def_oc_syms[(int)oclass].sym; for (i = bases[(int)oclass]; i < NUM_OBJECTS && objects[i].oc_class == oclass; ++i) if ((dis = disco[i]) != 0 && interesting_to_discover(dis)) { @@ -559,7 +559,7 @@ doclassdisco() nonviable classes as unseen acceptable choices so player can ask for discoveries of any class whether it has discoveries or not */ for (s = allclasses, xtras = 0; *s; ++s) { - c = def_oc_syms[*s].sym; + c = def_oc_syms[(int)*s].sym; if (!index(discosyms, c)) { if (!xtras++) Sprintf(eos(discosyms), "%c", '\033'); Sprintf(eos(discosyms), "%c", c);