diff --git a/hal/windows/WindowsGamepad.cpp b/hal/windows/WindowsGamepad.cpp index d5ed6d9953ba..fba857c20bac 100644 --- a/hal/windows/WindowsGamepad.cpp +++ b/hal/windows/WindowsGamepad.cpp @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include "nsIComponentManager.h" #include "nsIObserver.h" @@ -745,7 +745,7 @@ WindowsGamepadService::GetRawGamepad(HANDLE handle) } } - gamepad.numAxes = std::min(axes.Length(), kMaxAxes); + gamepad.numAxes = std::min(axes.Length(), kMaxAxes); for (unsigned i = 0; i < gamepad.numAxes; i++) { if (i >= kMaxAxes) { break;