From 40503f3410e1f012af4a3bf40df4bebe67947491 Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Wed, 24 Jan 2018 07:41:13 +0100 Subject: [PATCH] Update for another nasal::Context change --- src/Scripting/NasalPositioned_cppbind.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Scripting/NasalPositioned_cppbind.cxx b/src/Scripting/NasalPositioned_cppbind.cxx index 84c13322f..3069a4f87 100644 --- a/src/Scripting/NasalPositioned_cppbind.cxx +++ b/src/Scripting/NasalPositioned_cppbind.cxx @@ -424,7 +424,7 @@ static naRef f_courseAndDistance(nasal::CallContext ctx) double course, course2, d; SGGeodesy::inverse(from, to, course, course2, d); - return ctx.newVector(course, d * SG_METER_TO_NM); + return ctx.to_nasal_vec(course, d * SG_METER_TO_NM); } static naRef f_sortByRange(nasal::CallContext ctx)