OSDN Git Service
(root)
/
hengband
/
hengband.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[Refactor] #39076 冗長なコメントを削除しつつ、 OBJECT_IS_VALID() マクロに置換。
[hengband/hengband.git]
/
src
/
object-hook.h
diff --git
a/src/object-hook.h
b/src/object-hook.h
index
013cea7
..
4d53246
100644
(file)
--- a/
src/object-hook.h
+++ b/
src/object-hook.h
@@
-68,6
+68,8
@@
extern bool object_is_quest_target(object_type *o_ptr);
*/
#define object_is_known(T) (((T)->ident & (IDENT_KNOWN)) || (k_info[(T)->k_idx].easy_know && k_info[(T)->k_idx].aware))
+#define OBJECT_IS_VALID(T) ((T)->k_idx != 0)
+
/*
* Artifacts use the "name1" field
*/