diff options
Diffstat (limited to 'proto-ft')
-rw-r--r-- | proto-ft/ftnoir_protocol_ft.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/proto-ft/ftnoir_protocol_ft.cpp b/proto-ft/ftnoir_protocol_ft.cpp index 0c97ffd2..593fdaa9 100644 --- a/proto-ft/ftnoir_protocol_ft.cpp +++ b/proto-ft/ftnoir_protocol_ft.cpp @@ -105,7 +105,7 @@ void freetrack::pose(const double* headpose) if (intGameID != id) { QString gamename; - union { + union { unsigned char table[8]; std::int32_t ints[2]; } t; @@ -114,6 +114,9 @@ void freetrack::pose(const double* headpose) (void)CSV::getGameData(id, t.table, gamename); + if (gamename.isEmpty()) + gamename = _("Unknown game"); + static_assert(sizeof(LONG) == 4, ""); static_assert(sizeof(int) == 4, ""); |