Initialize last_packet_number
[libs/vr.git] / source / openvr / openvrcontroller.cpp
index 405cd2f837a429b2aaf9408bca55b3e8b20d0524..016405bab6b90b652a192f7ab7b7a70472238da4 100644 (file)
@@ -10,7 +10,8 @@ namespace VR {
 
 OpenVRController::OpenVRController(OpenVRSystem &s):
        system(s),
-       index(-1)
+       index(-1),
+       last_packet_number(0)
 {
        name = "OpenVR Controller";