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:
45f3499
)
[Fix] angband_strchrで見つからない場合NULLが返るのに、'\0'と比較して警告が出ていたので修正。 / Fix warning that angba...
author
iks
<iks@users.sourceforge.jp>
Sun, 22 Nov 2020 11:17:17 +0000
(20:17 +0900)
committer
iks
<iks@users.sourceforge.jp>
Sun, 22 Nov 2020 11:17:17 +0000
(20:17 +0900)
src/store/service-checker.c
patch
|
blob
|
history
diff --git
a/src/store/service-checker.c
b/src/store/service-checker.c
index
e86adc6
..
99f7355
100644
(file)
--- a/
src/store/service-checker.c
+++ b/
src/store/service-checker.c
@@
-102,7
+102,7
@@
static bool check_store_temple(player_type *player_ptr, object_type *o_ptr)
case TV_STATUE: {
monster_race *r_ptr = &r_info[o_ptr->pval];
if (!(r_ptr->flags3 & RF3_EVIL))
- if (((r_ptr->flags3 & RF3_GOOD) != 0) || ((r_ptr->flags3 & RF3_ANIMAL) != 0) || (angband_strchr("?!", r_ptr->d_char) !=
'\0'
))
+ if (((r_ptr->flags3 & RF3_GOOD) != 0) || ((r_ptr->flags3 & RF3_ANIMAL) != 0) || (angband_strchr("?!", r_ptr->d_char) !=
NULL
))
return TRUE;
}
/* Fall through */