OSDN Git Service
(root)
/
hengband
/
hengband.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89256c8
)
ワーニング除去作業で16進数を%dで受けるようにしたためにm_info_j.txtの解析に失敗するようになっていたのを修正。
author
habu
<habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 1 Jun 2002 02:21:11 +0000
(
02:21
+0000)
committer
habu
<habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 1 Jun 2002 02:21:11 +0000
(
02:21
+0000)
src/init1.c
patch
|
blob
|
history
diff --git
a/src/init1.c
b/src/init1.c
index
9df4941
..
6e5696c
100644
(file)
--- a/
src/init1.c
+++ b/
src/init1.c
@@
-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;