From 722420c5dc65d4f684e311b7ee969936d5b1543c Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Thu, 14 Dec 2017 16:51:47 +0100 Subject: [PATCH] diable unaigned pointer access temprary. --- code/MDLLoader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/MDLLoader.cpp b/code/MDLLoader.cpp index 2025d79b3..873da4c3e 100644 --- a/code/MDLLoader.cpp +++ b/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));