fix dictionary constant access crash
This commit is contained in:
parent
b279f641c0
commit
e25b6bf8da
@ -61,7 +61,7 @@ Variant &Dictionary::operator[](const Variant &p_key) {
|
|||||||
|
|
||||||
const Variant &Dictionary::operator[](const Variant &p_key) const {
|
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 {
|
const Variant *Dictionary::getptr(const Variant &p_key) const {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user