From 5465d76d20f0310d5e59e3a6b94331d72e2a264d Mon Sep 17 00:00:00 2001 From: JJ Date: Sun, 18 Jan 2015 19:48:32 -0500 Subject: [PATCH] VS would like us to return values. --- zone/position.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zone/position.cpp b/zone/position.cpp index a7b32cb62..afa2b45cf 100644 --- a/zone/position.cpp +++ b/zone/position.cpp @@ -152,7 +152,7 @@ float ComparativeDistance(const xyz_location& point1, const xyz_location& point2 * Produces the non square root'ed distance between the two points. */ float ComparativeDistance(const xyz_heading& point1, const xyz_heading& point2) { - ComparativeDistance(static_cast(point1), static_cast(point2)); + return ComparativeDistance(static_cast(point1), static_cast(point2)); } /** @@ -166,7 +166,7 @@ float Distance(const xyz_location& point1, const xyz_location& point2) { * Produces the distance between the two points. */ float Distance(const xyz_heading& point1, const xyz_heading& point2) { - Distance(static_cast(point1), static_cast(point2)); + return Distance(static_cast(point1), static_cast(point2)); } /**