David Rose 16 lat temu
rodzic
commit
130d341b3a
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      direct/src/plugin_standalone/panda3d.cxx

+ 1 - 1
direct/src/plugin_standalone/panda3d.cxx

@@ -279,7 +279,7 @@ feed_file(P3D_instance *inst, int unique_id, string filename) {
   }
   }
 #endif  // _WIN32
 #endif  // _WIN32
 
 
-  ifstream file(filename.c_str(), ios::in || ios::binary);
+  ifstream file(filename.c_str(), ios::in | ios::binary);
 
 
   // First, seek to the end to get the file size.
   // First, seek to the end to get the file size.
   file.seekg(0, ios::end);
   file.seekg(0, ios::end);