summaryrefslogtreecommitdiff
path: root/bin/tests
diff options
context:
space:
mode:
Diffstat (limited to 'bin/tests')
-rw-r--r--bin/tests/test_gdscript.cpp6
-rw-r--r--bin/tests/test_python.cpp2
2 files changed, 4 insertions, 4 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;
diff --git a/bin/tests/test_python.cpp b/bin/tests/test_python.cpp
index 26fb4bdafb..f4a3d7a3a2 100644
--- a/bin/tests/test_python.cpp
+++ b/bin/tests/test_python.cpp
@@ -53,4 +53,4 @@ void test() {
}
-#endif \ No newline at end of file
+#endif