Explorar o código

diable unaigned pointer access temprary.

Kim Kulling %!s(int64=7) %!d(string=hai) anos
pai
achega
722420c5dc
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      code/MDLLoader.cpp

+ 2 - 1
code/MDLLoader.cpp

@@ -416,7 +416,8 @@ void MDLImporter::InternReadFile_Quake1( )
     {
         // get the first frame in the group
         BE_NCONST MDL::GroupFrame* pcFrames2 = (BE_NCONST MDL::GroupFrame*)pcFrames;
-        pcFirstFrame = (BE_NCONST MDL::SimpleFrame*)(&pcFrames2->time + pcFrames->type);
+        //pcFirstFrame = (BE_NCONST MDL::SimpleFrame*)(&pcFrames2->time + pcFrames->type);
+		ai_assert( false && "Unaligned pointer" );
     }
     BE_NCONST MDL::Vertex* pcVertices = (BE_NCONST MDL::Vertex*) ((pcFirstFrame->name) + sizeof(pcFirstFrame->name));
     VALIDATE_FILE_SIZE((const unsigned char*)(pcVertices + pcHeader->num_verts));