diff options
Diffstat (limited to 'proto-ft/ftnoir_protocol_ft.cpp')
-rw-r--r-- | proto-ft/ftnoir_protocol_ft.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/proto-ft/ftnoir_protocol_ft.cpp b/proto-ft/ftnoir_protocol_ft.cpp index 0e1739cd..ccec3db0 100644 --- a/proto-ft/ftnoir_protocol_ft.cpp +++ b/proto-ft/ftnoir_protocol_ft.cpp @@ -76,9 +76,12 @@ void FTNoIR_Protocol::pose(const double* headpose) { { QString gamename; { - unsigned char table[8]; - if (CSV::getGameData(id, table, gamename)) - for (int i = 0; i < 8; i++) pMemData->table[i] = table[i]; + unsigned char table[8] = { 0,0,0,0, 0,0,0,0 }; + + (void) CSV::getGameData(id, table, gamename); + + for (int i = 0; i < 8; i++) + pMemData->table[i] = table[i]; } ft->GameID2 = id; intGameID = id; |