diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/m_db_int.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/m_db_int.h b/include/m_db_int.h index 4848bad326..59a555e720 100644 --- a/include/m_db_int.h +++ b/include/m_db_int.h @@ -56,6 +56,9 @@ struct DBCachedContact MCONTACT *pSubs;
MCONTACT parentID; // == 0 -> not a subcontact
int nDefault; // default sub number
+
+ __forceinline bool IsMeta() const { return nSubs != -1; }
+ __forceinline bool IsSub() const { return parentID != 0; }
};
interface MIDatabaseCache : public MZeroedObject
|