diff options
Diffstat (limited to 'src/choose_hill.cxx')
-rw-r--r-- | src/choose_hill.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/choose_hill.cxx b/src/choose_hill.cxx index 879e18a..1d86bde 100644 --- a/src/choose_hill.cxx +++ b/src/choose_hill.cxx @@ -19,21 +19,20 @@ choose_hill(const Hills *hills, const char *l) { for (int i=0; i<h_sort->get_num(); i++) { Hill *m = h_sort->get(i); - if (m->flags & (Hill::DUPLICATE | Hill::TRACK_POINT)) { + if (m->flags & (Hill::DUPLICATE | Hill::TRACK_POINT)) continue; - } + sc->add(m->name, m); } delete h_sort; sc->show(); - while (sc->shown()) { + + while (sc->shown()) Fl::wait(); - } ret = (Hill*) sc->data(); - delete(sc); return ret; |