OSDN Git Service

[Refactor] #39076 冗長なコメントを削除しつつ、 OBJECT_IS_VALID() マクロに置換。
[hengband/hengband.git] / src / object-hook.h
index 013cea7..4d53246 100644 (file)
@@ -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
  */