diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-11-09 16:30:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-09 16:30:07 +0100 |
commit | c7cd89c29fe93cc6e81cd5fa806301a0afae1258 (patch) | |
tree | b483ace6a8dffc00eed4eae52a1a2f03b24aa01a /core | |
parent | 05fc741bdb45f4a48852eb5a9c3600783d81cf1f (diff) | |
parent | e25b6bf8dabc47f2fc9c890600ff8ed844405960 (diff) |
Merge pull request #12780 from karroffel/dictionary-crash
fix dictionary constant access crash
Diffstat (limited to 'core')
-rw-r--r-- | core/dictionary.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/dictionary.cpp b/core/dictionary.cpp index 1b431f9ec9..48e65c734f 100644 --- a/core/dictionary.cpp +++ b/core/dictionary.cpp @@ -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 { |