From f4ec02a592c1feb31d48325c23a4593265407008 Mon Sep 17 00:00:00 2001 From: mfranz Date: Thu, 18 Dec 2008 22:51:58 +0000 Subject: [PATCH] James TURNER: make the index of the current waypoint available --- simgear/route/route.hxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/simgear/route/route.hxx b/simgear/route/route.hxx index 0b3701f1..75fac7f0 100644 --- a/simgear/route/route.hxx +++ b/simgear/route/route.hxx @@ -113,6 +113,10 @@ public: } } + inline int current_index() const { + return current_wp; + } + /** Increment the current waypoint pointer. */ inline void increment_current() { if ( current_wp < (int)route.size() - 1 ) { -- 2.39.5