summaryrefslogtreecommitdiffstats
path: root/core/class_db.cpp
diff options
context:
space:
mode:
authorreduz <reduzio@gmail.com>2020-10-15 12:29:59 -0300
committerJuan Linietsky <reduzio@gmail.com>2020-10-18 12:28:44 +0200
commitee06a70ea6ac51aa451d55c92b807346458822d7 (patch)
tree94ea8f231fa2590e37a84fe8cefe93965e8328fc /core/class_db.cpp
parent5b6a22e275ef8d8e2ad3b1e8074af4b30c076c27 (diff)
downloadredot-engine-ee06a70ea6ac51aa451d55c92b807346458822d7.tar.gz
Refactor MethodBind to use variadic templates
Removed make_binders and the old style generated binders.
Diffstat (limited to 'core/class_db.cpp')
-rw-r--r--core/class_db.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/class_db.cpp b/core/class_db.cpp
index 88f1df3457..ad85cd0d62 100644
--- a/core/class_db.cpp
+++ b/core/class_db.cpp
@@ -1343,7 +1343,7 @@ MethodBind *ClassDB::bind_methodfi(uint32_t p_flags, MethodBind *p_bind, const c
defvals.resize(p_defcount);
for (int i = 0; i < p_defcount; i++) {
- defvals.write[i] = *p_defs[p_defcount - i - 1];
+ defvals.write[i] = *p_defs[i];
}
p_bind->set_default_arguments(defvals);