summaryrefslogtreecommitdiffstats
path: root/scene/3d/navigation_region_3d.cpp
diff options
context:
space:
mode:
authorJosh Jones <kilauea.jones@gmail.com>2022-08-07 10:40:33 -0700
committerJosh Jones <kilauea.jones@gmail.com>2022-08-07 10:40:33 -0700
commit8c324132d03d86d2bc243e780db14496b8f10c34 (patch)
tree713791c1698b02962986c2eacd35314132120f1c /scene/3d/navigation_region_3d.cpp
parent21f6916ffc52d83ac57b4f412f3eb8d6b40afebe (diff)
downloadredot-engine-8c324132d03d86d2bc243e780db14496b8f10c34.tar.gz
Fix typo when setting NavigationRegion travel_cost
Diffstat (limited to 'scene/3d/navigation_region_3d.cpp')
-rw-r--r--scene/3d/navigation_region_3d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/navigation_region_3d.cpp b/scene/3d/navigation_region_3d.cpp
index 0abb0e8dea..4150b01651 100644
--- a/scene/3d/navigation_region_3d.cpp
+++ b/scene/3d/navigation_region_3d.cpp
@@ -119,7 +119,7 @@ real_t NavigationRegion3D::get_enter_cost() const {
void NavigationRegion3D::set_travel_cost(real_t p_travel_cost) {
ERR_FAIL_COND_MSG(p_travel_cost < 0.0, "The travel_cost must be positive.");
travel_cost = MAX(p_travel_cost, 0.0);
- NavigationServer3D::get_singleton()->region_set_enter_cost(region, travel_cost);
+ NavigationServer3D::get_singleton()->region_set_travel_cost(region, travel_cost);
}
real_t NavigationRegion3D::get_travel_cost() const {