- if ( stations[i]->get_type() == 4 || stations[i]->get_type() == 5 ){
- hdg_deg = stations[i]->get_multiuse();
- } else if ( stations[i]->get_type() == 6 ) {
- int tmp = (int)(stations[i]->get_multiuse() / 1000.0);
- hdg_deg = stations[i]->get_multiuse() - (tmp * 1000);
- } else if ( stations[i]->get_type() == 12 ||
- stations[i]->get_type() == 13 ) {
+ if ( type == 4 || type == 5 ){
+ hdg_deg = station->get_multiuse();
+
+ } else if ( type == 6 ) {
+ int tmp = (int)(station->get_multiuse() / 1000.0);
+ hdg_deg = station->get_multiuse() - (tmp * 1000);
+
+ } else if ( type == 12 || type == 13 ) {