]> granicus.if.org Git - nethack/commitdiff
/home/cohrs/msg
authorcohrs <cohrs>
Sun, 2 Oct 2011 21:27:24 +0000 (21:27 +0000)
committercohrs <cohrs>
Sun, 2 Oct 2011 21:27:24 +0000 (21:27 +0000)
src/o_init.c

index d078707dbea37b200b5f9c110eef92cccd79f4cc..3b65bf9c75b9cdae7eaf3432525bf73f1e8bb144 100644 (file)
@@ -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);