summaryrefslogtreecommitdiffstats
path: root/core/math/a_star.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-12-10 15:10:54 +0100
committerRémi Verschelde <rverschelde@gmail.com>2017-12-10 15:34:08 +0100
commit2b41afb30e51629c439344439419b544ef12bf17 (patch)
treeb550031a281a0bb1b05d90c38a879c9299840ca2 /core/math/a_star.cpp
parent6b6f94fb0c4a23b27295d84c43e219ed721f4d06 (diff)
downloadredot-engine-2b41afb30e51629c439344439419b544ef12bf17.tar.gz
Fix wrong return value in some virtual method bindings
Diffstat (limited to 'core/math/a_star.cpp')
-rw-r--r--core/math/a_star.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/math/a_star.cpp b/core/math/a_star.cpp
index 7e26761abf..4498efeb41 100644
--- a/core/math/a_star.cpp
+++ b/core/math/a_star.cpp
@@ -473,8 +473,8 @@ void AStar::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_point_path", "from_id", "to_id"), &AStar::get_point_path);
ClassDB::bind_method(D_METHOD("get_id_path", "from_id", "to_id"), &AStar::get_id_path);
- BIND_VMETHOD(MethodInfo("_estimate_cost", PropertyInfo(Variant::INT, "from_id"), PropertyInfo(Variant::INT, "to_id")));
- BIND_VMETHOD(MethodInfo("_compute_cost", PropertyInfo(Variant::INT, "from_id"), PropertyInfo(Variant::INT, "to_id")));
+ BIND_VMETHOD(MethodInfo(Variant::REAL, "_estimate_cost", PropertyInfo(Variant::INT, "from_id"), PropertyInfo(Variant::INT, "to_id")));
+ BIND_VMETHOD(MethodInfo(Variant::REAL, "_compute_cost", PropertyInfo(Variant::INT, "from_id"), PropertyInfo(Variant::INT, "to_id")));
}
AStar::AStar() {