]> git.mxchange.org Git - flightgear.git/commitdiff
Alex Perry : Minor bug fix patch for terrasync
authorfredb <fredb>
Sat, 15 Aug 2009 17:13:06 +0000 (17:13 +0000)
committerTim Moore <timoore@redhat.com>
Sun, 23 Aug 2009 19:43:08 +0000 (21:43 +0200)
utils/TerraSync/terrasync.cxx

index 8063b3c3720bf5a193cfc2b2ffa8a4806589daf3..9f4ee7b3fe8444e3d36211a145ed783f58f592cc 100644 (file)
@@ -458,7 +458,7 @@ int main( int argc, char **argv ) {
     int last_lat = nowhere;
     int last_lon = nowhere;
     bool recv_msg = false;
-    char synced_other = 'K';
+    char synced_other = 'J';
 
     while ( true ) {
         recv_msg = false;
@@ -506,7 +506,7 @@ int main( int argc, char **argv ) {
                    cout << "Waiting for FGFS to finish startup" << endl;
                }
                char c;
-               while ( !isdigit( c = synced_other++ ) && !isupper( c ) );
+               while ( !isdigit( c = ++synced_other ) && !isupper( c ) );
 
                char dir[512];
                snprintf( dir, 512, "Airports/%c", c );