minor warning fixes, issue with "direction[i] = direction[i];" on OSX
This commit is contained in:
@@ -1058,7 +1058,8 @@ void bFile::writeChunks(FILE* fp, bool fixupPointers)
|
||||
|
||||
|
||||
|
||||
short int* curStruct1 = mMemoryDNA->getStruct(dataChunk.dna_nr);
|
||||
short int* curStruct1;
|
||||
curStruct1 = mMemoryDNA->getStruct(dataChunk.dna_nr);
|
||||
assert(curStruct1 == curStruct);
|
||||
|
||||
char* cur = fixupPointers ? (char*)findLibPointer(dataChunk.oldPtr) : (char*)dataChunk.oldPtr;
|
||||
|
||||
@@ -364,7 +364,8 @@ void btBulletFile::addStruct(const char* structType,void* data, int len, void* o
|
||||
|
||||
///Perform structure size validation
|
||||
short* structInfo= mMemoryDNA->getStruct(dataChunk.dna_nr);
|
||||
int elemBytes = mMemoryDNA->getLength(structInfo[0]);
|
||||
int elemBytes;
|
||||
elemBytes= mMemoryDNA->getLength(structInfo[0]);
|
||||
// int elemBytes = mMemoryDNA->getElementSize(structInfo[0],structInfo[1]);
|
||||
assert(len==elemBytes);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user