summaryrefslogtreecommitdiffhomepage
path: root/proto-ft/ftnoir_protocol_ft.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'proto-ft/ftnoir_protocol_ft.cpp')
-rw-r--r--proto-ft/ftnoir_protocol_ft.cpp5
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, "");