oops missed this one

This commit is contained in:
matcool 2024-01-09 02:20:10 -03:00
parent 79e14e4be3
commit aecd7cc186

View file

@ -1096,8 +1096,12 @@ namespace geode::cocos {
return CCDictEntry<Key, ValuePtr>(key, m_dict);
}
size_t count(K key) {
return m_dict->allKeys(key)->count();
bool contains(const Key& key) {
return m_dict->objectForKey(key) != nullptr;
}
size_t count(const Key& key) {
return this->contains(key) ? 1 : 0;
}
};
}