2
0
Эх сурвалжийг харах

fix dictionary constant access crash

Karroffel 7 жил өмнө
parent
commit
e25b6bf8da
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      core/dictionary.cpp

+ 1 - 1
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 {