From a35d788fcc196b333a361e2596c0ead25297f7b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Monta=C3=B1=C3=A9s=20Garc=C3=ADa?= Date: Sun, 20 Sep 2015 20:44:11 +0200 Subject: [PATCH] Fix for Issue #1415Move::Move() is not properly initializing bool trigger[MaxTriggerKeys]; from https://github.com/GarageGames/Torque3D/issues/1415 --- Engine/source/T3D/gameBase/moveManager.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Engine/source/T3D/gameBase/moveManager.cpp b/Engine/source/T3D/gameBase/moveManager.cpp index a95164ec7e..2a717bf10d 100644 --- a/Engine/source/T3D/gameBase/moveManager.cpp +++ b/Engine/source/T3D/gameBase/moveManager.cpp @@ -160,12 +160,8 @@ Move::Move() checksum = false; deviceIsKeyboardMouse = false; freeLook = false; - trigger[0] = false; - trigger[1] = false; - trigger[2] = false; - trigger[3] = false; - trigger[4] = false; - trigger[5] = false; + for (S32 i = 0; i< MaxTriggerKeys; i++) + trigger[i] = false; } static inline F32 clampFloatWrap(F32 val)