summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaryOderNichts <12049776+GaryOderNichts@users.noreply.github.com>2022-07-24 15:37:17 +0200
committerGitHub <noreply@github.com>2022-07-24 09:37:17 -0400
commitd3c2c0ec7d2c8f4e9980171ec31c56684da0f8a3 (patch)
tree89c599162a8aa21db0a0263f3e740cc692b7b785
parent38ecb6cfff8c85e13146f833d400bb2040f09b44 (diff)
Controller: zero-initialize wCam values (#902)
-rw-r--r--libultraship/libultraship/Controller.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libultraship/libultraship/Controller.cpp b/libultraship/libultraship/Controller.cpp
index 6fc99c5c2..1e59e55c3 100644
--- a/libultraship/libultraship/Controller.cpp
+++ b/libultraship/libultraship/Controller.cpp
@@ -9,7 +9,7 @@
namespace Ship {
- Controller::Controller() : isRumbling(false), wStickX(0), wStickY(0), wGyroX(0), wGyroY(0), dwPressedButtons(0){
+ Controller::Controller() : isRumbling(false), wStickX(0), wStickY(0), wGyroX(0), wGyroY(0), wCamX(0), wCamY(0), dwPressedButtons(0){
Attachment = nullptr;
profiles.resize(MAXCONTROLLERS);
for(int slot = 0; slot < MAXCONTROLLERS; slot++) {