]> git.mxchange.org Git - simgear.git/blobdiff - simgear/structure/event_mgr.hxx
Bug fixes. The priority queue wasn't handling boundary conditions at
[simgear.git] / simgear / structure / event_mgr.hxx
index 07c65d5faa9a739869de487d6bc2895541de6d86..4c8d29bd61d19675847a8069300ea3e7eadf72b3 100644 (file)
@@ -42,6 +42,7 @@ private:
     int parent(int n) { return ((n+1)/2) - 1; }
     int lchild(int n) { return ((n+1)*2) - 1; }
     int rchild(int n) { return ((n+1)*2 + 1) - 1; }
+    double pri(int n) { return _table[n].pri; }
     void swap(int a, int b) {
        HeapEntry tmp = _table[a];
        _table[a] = _table[b];