summaryrefslogtreecommitdiffstats
path: root/modules/mono/csharp_script.cpp
diff options
context:
space:
mode:
authorhuisedenanhai <winser@pku.edu.cn>2023-05-20 20:39:59 +0800
committerPaul Joannon <hello@pauljoannon.com>2024-05-04 18:54:37 +0200
commitc313312ff5301bb6537bbe7187a40fff20726850 (patch)
tree6dd787bc7307e9fb23c609e3b2acd672b77c281f /modules/mono/csharp_script.cpp
parent7ebc866418b075df58cbe4e31fcf8b0c3acd70a1 (diff)
downloadredot-engine-c313312ff5301bb6537bbe7187a40fff20726850.tar.gz
CSharpScript should not own method infos of the base class
Diffstat (limited to 'modules/mono/csharp_script.cpp')
-rw-r--r--modules/mono/csharp_script.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/modules/mono/csharp_script.cpp b/modules/mono/csharp_script.cpp
index ff2ca9f0ce..1b1cd3ae4a 100644
--- a/modules/mono/csharp_script.cpp
+++ b/modules/mono/csharp_script.cpp
@@ -1596,14 +1596,7 @@ void CSharpInstance::get_method_list(List<MethodInfo> *p_list) const {
return;
}
- const CSharpScript *top = script.ptr();
- while (top != nullptr) {
- for (const CSharpScript::CSharpMethodInfo &E : top->methods) {
- p_list->push_back(E.method_info);
- }
-
- top = top->base_script.ptr();
- }
+ script->get_script_method_list(p_list);
}
bool CSharpInstance::has_method(const StringName &p_method) const {