Selaa lähdekoodia

Merge branch 'master' into patch-2

Kim Kulling 2 vuotta sitten
vanhempi
commit
c8d50dc83f
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1 1
      code/AssetLib/B3D/B3DImporter.cpp
  2. 1 1
      doc/Fileformats.md

+ 1 - 1
code/AssetLib/B3D/B3DImporter.cpp

@@ -150,7 +150,7 @@ AI_WONT_RETURN void B3DImporter::Fail(const string &str) {
 
 // ------------------------------------------------------------------------------------------------
 int B3DImporter::ReadByte() {
-    if (_pos > _buf.size()) {
+    if (_pos >= _buf.size()) {
         Fail("EOF");
     }
 

+ 1 - 1
doc/Fileformats.md

@@ -14,7 +14,7 @@ __Importers__:
 - B3D
 - [BLEND](https://en.wikipedia.org/wiki/.blend_(file_format))
 - [BVH](https://en.wikipedia.org/wiki/Biovision_Hierarchy)
-- CMS
+- CSM
 - COB
 - [DAE/Collada](https://en.wikipedia.org/wiki/COLLADA)
 - [DXF](https://en.wikipedia.org/wiki/AutoCAD_DXF)