fix ccdictionaryext yet again

This commit is contained in:
matcool 2024-01-09 09:41:22 -03:00
parent 6b1164d4a6
commit 32cd4c40f1

View file

@ -1091,7 +1091,7 @@ namespace geode::cocos {
auto operator[](const Key& key) {
auto ret = static_cast<ValuePtr>(m_dict->objectForKey(key));
if (!ret) m_dict->setObject(cocos2d::CCObject::create(), key);
if (!ret) m_dict->setObject(cocos2d::CCNode::create(), key);
return CCDictEntry<Key, ValuePtr>(key, m_dict);
}