summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorKarroffel <therzog@mail.de>2017-11-07 17:49:16 +0100
committerKarroffel <therzog@mail.de>2017-11-09 16:27:27 +0100
commite25b6bf8dabc47f2fc9c890600ff8ed844405960 (patch)
treeb9c5fdc3ffb713a4897823fcf6bd90bbc0f59bab /core
parentb279f641c0b9e7af711d857917353905b48c6913 (diff)
fix dictionary constant access crash
Diffstat (limited to 'core')
-rw-r--r--core/dictionary.cpp2
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 {