From e25b6bf8dabc47f2fc9c890600ff8ed844405960 Mon Sep 17 00:00:00 2001 From: Karroffel Date: Tue, 7 Nov 2017 17:49:16 +0100 Subject: fix dictionary constant access crash --- core/dictionary.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 *)&_p->variant_map)->operator[](p_key); + return _p->variant_map[p_key]; } const Variant *Dictionary::getptr(const Variant &p_key) const { -- cgit v1.2.3