瀏覽代碼

fix for Windows

David Rose 24 年之前
父節點
當前提交
2344107b9c
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;
   typedef vector<TypedWritable *> Objects;
   Objects objects;
   Objects objects;
   TypedWritable *object = bam_file.read_object();
   TypedWritable *object = bam_file.read_object();
-  while (!bam_file.is_eof()) {
+  while (object != (TypedWritable *)NULL || !bam_file.is_eof()) {
     if (object != (TypedWritable *)NULL) {
     if (object != (TypedWritable *)NULL) {
       objects.push_back(object);
       objects.push_back(object);
     }
     }