fix issue with serialization (only happens when using the BT_INTERNAL_UPDATE_SERIALIZATION_STRUCTURES option)

This commit is contained in:
erwin.coumans
2010-02-22 22:47:15 +00:00
parent 9dfe040bee
commit 5ab92c0083

View File

@@ -261,7 +261,6 @@ void btBulletFile::parse(bool verboseDumpAllTypes)
delete m_DnaCopy;
m_DnaCopy = (char*)btAlignedAlloc(sBulletDNAlen64,16);
memcpy(m_DnaCopy,sBulletDNAstr64,sBulletDNAlen64);
mMemoryDNA->init(m_DnaCopy,sBulletDNAlen64);
parseInternal(verboseDumpAllTypes,(char*)sBulletDNAstr64,sBulletDNAlen64);
#else
btAssert(0);
@@ -275,7 +274,6 @@ void btBulletFile::parse(bool verboseDumpAllTypes)
delete m_DnaCopy;
m_DnaCopy = (char*)btAlignedAlloc(sBulletDNAlen,16);
memcpy(m_DnaCopy,sBulletDNAstr,sBulletDNAlen);
mMemoryDNA->init(m_DnaCopy,sBulletDNAlen);
parseInternal(verboseDumpAllTypes,m_DnaCopy,sBulletDNAlen);
#else
btAssert(0);