fix dictionary constant access crash

This commit is contained in:
Karroffel 2017-11-07 17:49:16 +01:00
parent b279f641c0
commit e25b6bf8da

View File

@ -61,7 +61,7 @@ Variant &Dictionary::operator[](const Variant &p_key) {
const Variant &Dictionary::operator[](const Variant &p_key) const {
return ((const OrderedHashMap<Variant, Variant, _DictionaryVariantHash> *)&_p->variant_map)->operator[](p_key);
return _p->variant_map[p_key];
}
const Variant *Dictionary::getptr(const Variant &p_key) const {