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); return CCDictEntry<Key, ValuePtr>(key, m_dict);
} }
size_t count(K key) { bool contains(const Key& key) {
return m_dict->allKeys(key)->count(); return m_dict->objectForKey(key) != nullptr;
}
size_t count(const Key& key) {
return this->contains(key) ? 1 : 0;
} }
}; };
} }