Pārlūkot izejas kodu

fix for Windows

David Rose 24 gadi atpakaļ
vecāks
revīzija
2344107b9c
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      pandatool/src/bam/bamInfo.cxx

+ 1 - 1
pandatool/src/bam/bamInfo.cxx

@@ -129,7 +129,7 @@ get_info(const Filename &filename) {
   typedef vector<TypedWritable *> Objects;
   Objects objects;
   TypedWritable *object = bam_file.read_object();
-  while (!bam_file.is_eof()) {
+  while (object != (TypedWritable *)NULL || !bam_file.is_eof()) {
     if (object != (TypedWritable *)NULL) {
       objects.push_back(object);
     }