OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
126c7be
)
quark_add()に0等を与えた時の仕様を不用意に変えてしまっていて、
author
mogami
<mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 5 Jan 2004 13:26:01 +0000
(13:26 +0000)
committer
mogami
<mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 5 Jan 2004 13:26:01 +0000
(13:26 +0000)
自動拾いエディタでアイテム名挿入等でおかしくなっていたので戻した。
src/util.c
patch
|
blob
|
history
diff --git
a/src/util.c
b/src/util.c
index
76ecb73
..
60cdf5f
100644
(file)
--- a/
src/util.c
+++ b/
src/util.c
@@
-2266,8
+2266,8
@@
cptr quark_str(s16b i)
{
cptr q;
- /*
Verify
*/
- if ((i < 1) || (i >= quark__num))
i = 1
;
+ /*
Return NULL for an invalid index
*/
+ if ((i < 1) || (i >= quark__num))
return NULL
;
/* Access the quark */
q = quark__str[i];