]> git.mxchange.org Git - flightgear.git/blobdiff - DEM/dem.cxx
Fixed a bug where the wrong variable was being initialized.
[flightgear.git] / DEM / dem.cxx
index 462013bf9b2bba1da70a41095337e9ac687199df..0e3351f18adf0a491c7678cc07a32e95e149b7e0 100644 (file)
@@ -105,7 +105,7 @@ int fgDEM::open ( char *file ) {
        // fd = stdin;
        fd = gzdopen(STDIN_FILENO, "r");
     } else {
-       if ( (fd = gzopen(file, "r")) == NULL ) {
+       if ( (fd = gzopen(file, "rb")) == NULL ) {
            printf("Cannot gzopen %s\n", file);
            return(0);
        }
@@ -375,7 +375,7 @@ void fgDEM::read_b_record( void ) {
 int fgDEM::parse( void ) {
     int i;
 
-    cur_row = 0;
+    cur_col = 0;
 
     read_a_record();
 
@@ -772,6 +772,12 @@ fgDEM::~fgDEM( void ) {
 
 
 // $Log$
+// Revision 1.6  1998/05/02 01:49:21  curt
+// Fixed a bug where the wrong variable was being initialized.
+//
+// Revision 1.5  1998/04/25 15:00:32  curt
+// Changed "r" to "rb" in gzopen() options.  This fixes bad behavior in win32.
+//
 // Revision 1.4  1998/04/22 13:14:46  curt
 // Fixed a bug in zlib usage.
 //