fix a 64-bit issue in the optional 'preSwapFilenameOut' method (this is only use when you want to export a copy of a .bullet file after loading with a different endian-ness)

This commit is contained in:
erwin coumans
2014-12-22 14:04:19 -08:00
parent a6bf3d023e
commit 6e70f285e1

View File

@@ -388,7 +388,9 @@ void bFile::swapDNA(char* ptr)
{
bool swap = ((mFlags & FD_ENDIAN_SWAP)!=0);
char* data = &ptr[20];
int offset = (mFlags & FD_FILE_64)? 24 : 20;
char* data = &ptr[offset];
// void bDNA::init(char *data, int len, bool swap)
int *intPtr=0;short *shtPtr=0;
char *cp = 0;int dataLen =0;long nr=0;