Fixed bug in array initialization for SIMU command.

This commit is contained in:
Jason Watkins
2015-04-30 10:03:24 -07:00
parent ed8d065642
commit 781fc390c2

View File

@@ -503,8 +503,12 @@ namespace XPC
const unsigned char* buffer = msg.GetBuffer();
// Set DREF
int value[8] = {buffer[5]};
DataManager::Set(DREF::Pause, value, 8);
int value[20];
for (int i = 0; i < 20; ++i)
{
value[i] = buffer[5];
}
DataManager::Set(DREF::Pause, value, 20);
#if LOG_VERBOSITY > 2
if (buffer[5] == 0)