summaryrefslogtreecommitdiff
path: root/bin/tests/test_gdscript.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bin/tests/test_gdscript.cpp')
-rw-r--r--bin/tests/test_gdscript.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/tests/test_gdscript.cpp b/bin/tests/test_gdscript.cpp
index 4578f5aa02..4457d70b38 100644
--- a/bin/tests/test_gdscript.cpp
+++ b/bin/tests/test_gdscript.cpp
@@ -487,12 +487,12 @@ static String _disassemble_addr(const Ref<GDScript>& p_script,const GDFunction&
static void _disassemble_class(const Ref<GDScript>& p_class,const Vector<String>& p_code) {
- const Map<StringName,GDFunction>& mf = p_class->debug_get_member_functions();
+ const Map<StringName,GDFunction*>& mf = p_class->debug_get_member_functions();
- for(const Map<StringName,GDFunction>::Element *E=mf.front();E;E=E->next()) {
+ for(const Map<StringName,GDFunction*>::Element *E=mf.front();E;E=E->next()) {
- const GDFunction &func=E->get();
+ const GDFunction &func=*E->get();
const int *code = func.get_code();
int codelen=func.get_code_size();
String defargs;