Merge pull request #12780 from karroffel/dictionary-crash
fix dictionary constant access crash
This commit is contained in:
commit
c7cd89c29f
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
||||
|
|
Loading…
Reference in a new issue