Guard against accessing outside bounds

This commit is contained in:
Emil Axelsson
2017-11-03 15:48:00 +01:00
parent aa63ec68b0
commit 16efa28470
3 changed files with 29 additions and 4 deletions
+1
View File
@@ -188,6 +188,7 @@ private:
properties::IntProperty nFingers;
properties::StringProperty interpretedInteraction;
properties::FloatProperty normalizedCentroidDistance;
properties::FloatProperty minDiff;
properties::FloatProperty rollOn;
} _debugProperties;
#endif
+1 -1
View File
@@ -96,7 +96,7 @@ class TuioEar : public TUIO::TuioListener {
void clearInput();
private:
bool _tap;
bool _tap = false;
TUIO::TuioCursor _tapCo = TUIO::TuioCursor(-1, -1, -1.0f, -1.0f);
std::mutex _mx;