Browse Source

Fix compile error

Fixed bad cast.
JeffH-BMG 7 years ago
parent
commit
cfd56a43a5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      code/STLLoader.cpp

+ 1 - 1
code/STLLoader.cpp

@@ -485,7 +485,7 @@ bool STLImporter::LoadBinaryFile()
         ++theVec;
         ++theVec;
         ++vp;
         ++vp;
         
         
-        sz = theVec;
+        sz = (const unsigned char*) theVec;
 
 
         uint16_t color = *((uint16_t*)sz);
         uint16_t color = *((uint16_t*)sz);
         sz += 2;
         sz += 2;