fix issue in DNA copy, reduce number of test iterations.

This commit is contained in:
erwincoumans
2016-11-04 20:53:57 -07:00
parent cf21da4c9d
commit 6ce6157c8a
2 changed files with 2 additions and 2 deletions

View File

@@ -2190,7 +2190,7 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm
const char* memDna = btDefaultSerializer::getMemoryDna();
if (sz < bufferSizeInBytes)
{
for (int i = 0; i < bufferSizeInBytes; i++)
for (int i = 0; i < sz; i++)
{
bufferServerToClient[i] = memDna[i];
}