OSDN Git Service

ワーニング除去作業で16進数を%dで受けるようにしたためにm_info_j.txtの解析に失敗するようになっていたのを修正。
authorhabu <habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 1 Jun 2002 02:21:11 +0000 (02:21 +0000)
committerhabu <habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 1 Jun 2002 02:21:11 +0000 (02:21 +0000)
src/init1.c

index 9df4941..6e5696c 100644 (file)
@@ -1073,8 +1073,8 @@ errr parse_m_info(char *buf, header *head)
 
 
                /* Scan for the values */
-               if (4 != sscanf(s, "%d:%d:%d:%d",
-                               &xtra, &type, &first, &weight)) return (1);
+               if (4 != sscanf(s, "%x:%d:%d:%d",
+                               (uint *)&xtra, &type, &first, &weight)) return (1);
 
                m_ptr->spell_xtra = xtra;
                m_ptr->spell_type = type;